Skip to content

Instantly share code, notes, and snippets.

@nishinoshake
Last active May 29, 2016 04:04
Show Gist options
  • Save nishinoshake/69e25532173d530de24042be1dbe5099 to your computer and use it in GitHub Desktop.
Save nishinoshake/69e25532173d530de24042be1dbe5099 to your computer and use it in GitHub Desktop.
UnicodeとUTF-8の違いがよくわからん

####Unicode アルファベットや記号、漢字・ひらがななどの文字の集合。
世界中にあるすべての文字を一つの一貫した方法で表現したいというモチベーション。

####UTF-8 それらの文字をどのように符号化するかという文字符号化方式(エンコーディング)
ASCIIに対して上位互換があり、ASCIIの互換部分は1バイト。漢字やかなは3バイト。
サイズは可変長(1-4byte)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment