<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inorinrinrin</author_name>
  <author_url>https://blog.hatena.ne.jp/inorinrinrin/</author_url>
  <blog_title>プププなテクブ</blog_title>
  <blog_url>https://blog.inorinrinrin.com/</blog_url>
  <categories>
    <anon>Web Standard</anon>
    <anon>JS/TS</anon>
    <anon>Valibot</anon>
  </categories>
  <description>前提の確認 コンピュータは文字をそのまま保存できないので、すべての文字に数値を割り当てて保存しています。この「文字と数値の対応表」の一つが Unicode です。Unicode では、たとえば「A」には 65、「あ」には 12354 といった具合に、世界中のほぼすべての文字に固有の番号(=コードポイント)が振られています。 Unicode の番号がわかっても、それをメモリ上にどう並べるかというルールが別に必要です。そのルールの一つが UTF-16 で、JavaScript の文字列内部ではこの方式が使われています。 UTF-16 は、「16ビット(2バイト)のかたまり」を1個か2個使って表現し…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.inorinrinrin.com%2Fentry%2F8e2abf66-324e-4bab-092e-f1fe29f99f96&quot; title=&quot;Valibotはどうやって**文字列**を数えているのか - プププなテクブ&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>2026-09-18 15:53:00</published>
  <title>Valibotはどうやって**文字列**を数えているのか</title>
  <type>rich</type>
  <url>https://blog.inorinrinrin.com/entry/8e2abf66-324e-4bab-092e-f1fe29f99f96</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
