<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zrbabbler</author_name>
  <author_url>https://blog.hatena.ne.jp/zrbabbler/</author_url>
  <blog_title>マクロツイーター</blog_title>
  <blog_url>https://zrbabbler.hatenablog.com/</blog_url>
  <categories>
    <anon>TeX</anon>
    <anon>LuaTeX</anon>
  </categories>
  <description>LuaTeX において、Unicode 文字列は UTF-8 にエンコードされた形で Lua に渡っている。それを確かめる実験。 {\lccode`Z=&quot;3042 \lowercase{\gdef\hiraA{Z}}} \directlua{ local str, pc = &quot;\hiraA&quot;, string.char(37) for i = 1, str:len() do tex.write((pc..&quot;02X&quot;):format(str:byte(i))) end } \byeこれをコンパイルすると出力は「E38182」になる。1 行目では、\lowercase を利用して、符号値 U+304…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzrbabbler.hatenablog.com%2Fentry%2F20110201%2F1296516935&quot; title=&quot;Lua に渡る「文字列」のエンコーディング - マクロツイーター&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-02-01 08:35:35</published>
  <title>Lua に渡る「文字列」のエンコーディング</title>
  <type>rich</type>
  <url>https://zrbabbler.hatenablog.com/entry/20110201/1296516935</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
