<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kirikiriyamama</author_name>
  <author_url>https://blog.hatena.ne.jp/kirikiriyamama/</author_url>
  <blog_title>きりきりやま</blog_title>
  <blog_url>https://kirikiriyamama.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>Shift_JIS の CSV で連携する外部サービスがあり、DB では UTF-8 でテキストを持っていたため文字コードを変換する必要が生じた。 ところが UTF-8 に存在する多くの文字は Shift_JIS に対応がないため変換することができない1。 そこで、事前に NFKC 形式で Unicode 正規化することで変換可能な文字を増やすことを試みた。 まずは Unicode 正規化の前提として、Unicode の正準等価と互換等価について説明する。 以降の U+16進数 という表記は Unicode のコードポイント (文字に ID のようなものが割り当てられている) を示す。 また、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkirikiriyamama.hatenablog.com%2Fentry%2F2020%2F08%2F05%2F144205&quot; title=&quot;UTF-8 の文字列をできる限り Shift_JIS に変換したい - きりきりやま&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>2020-08-05 14:42:05</published>
  <title>UTF-8 の文字列をできる限り Shift_JIS に変換したい</title>
  <type>rich</type>
  <url>https://kirikiriyamama.hatenablog.com/entry/2020/08/05/144205</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
