#文字コードの知識 14
用語整理
#UCS
=#UCS4(国際文字集合.4バイト)
↓
#UCS2(UCS4のサブセット.主要言語カバー)
=#BMP(基本多言語面)
↓
#UTF(UCS2をバイト列に符号化する方式)
↓
#UTF8
(UTFの1つ.8ビット可変長.#ASCII 上位互換)
↓
#UTF16
(UCS2に加えUCS4も一部利用可.16ビット可変長)

Dev log: one em dash closed a string in our build script. Windows PowerShell 5.1 read the BOM-less UTF-8 file as ANSI, so the dash's last byte (0x94) became a curly quote, which PowerShell accepts as a closing quote. Fix: ASCII '--'. ParseFile: 4 errors before, 0 after. #indiedev #powershell #utf8
Blog Alert!
This time on a silly issue, when my log files were in the wrong encoding, and I needed PowerShell to decode them.