The Unicode® Standard Version 15.0 – Core Specification
https://www.unicode.org/versions/Unicode15.0.0/ch03.pdf
When converting between different encoding schemes, extreme care must be taken in handling any initial byte order marks.
For example, if one converted a UTF-16 byte serialization with an initial byte order mark to a UTF-8 byte serialization, thereby converting the byte order mark to <EF BB BF> in the UTF-8 form, the <EF BB BF> would now be ambiguous as to its status as a byte order mark (from its source) or as an initial zero width no break space.
If the UTF-8 byte serialization were then converted to UTF-16BE and the initial <EF BB BF> were converted to <FE FF>, the interpretation of the U+FEFF character would have been modified by the conversion.
This would be nonconformant behavior according to conformance clause C7, because the change between byte serializations would have resulted in modification of the interpretation of the text.
This is one reason why the use of the initial byte sequence <EF BB BF> as a signature on UTF-8 byte sequences is not recommended by the Unicode Standard.
文字コード総合スレ part14
■ このスレッドは過去ログ倉庫に格納されています
2023/03/05(日) 10:24:42.19ID:Dqp2Pk7H
■ このスレッドは過去ログ倉庫に格納されています
ニュース
- 両足切断された30代女性が意識回復、軽トラックと車に挟まれた事故 40代男を逮捕 東京・世田谷区三軒茶屋 ★2 [お断り★]
- 【野球】また下剋上 3位・DeNAの日本シリーズ進出に困惑 「邪道」「これでいいのかプロ野球」「ペナントレース勝ち抜いた意味ない」★3 [冬月記者★]
- 「イオンモールおじさん」にSNS賛否…中年男性のファッションは何が正解? 400人アンケートで見えた「over50男性のリアル」 [七波羅探題★]
- 横浜市長選、原沢敦美氏が当選確実 パワハラ辞職の山中竹春氏ら破る :朝日新聞 [少考さん★]
- 謙虚さが低い男性ほど「男性は不当に扱われている」と感じて男性の権利擁護活動を支持する傾向があるという研究結果 [少考さん★]
- 【サッカー】日本代表MF 久保建英(ソシエダ) 待望の今季初ゴール! 7試合ぶりに先発 マラガ戦で圧巻のゴラッソ! [阿弥陀ヶ峰★]
- トランプさん、ゼレンスキーを長文で批判 [737440712]
- 【訃報】ブラックマンデー再来か、日経平均先物、大幅マイナス、半導体逝く [943688309]
- 【高市悲報】 逮捕状、紙からデジタルへ。タブレットに表示された逮捕状を示して執行が可能に。刑事訴訟法改正 [566475398]
- 使い所の難しい気持ち悪すぎるLINEスタンプが発見される [253839187]
- 【動画】米空軍兵士、アメフト試合前のロープ降下で死亡 高さ約49mから落下 [834922174]
- ジャップは反移民感情高めてどうすんの?おまえが外国人労働者様の抜けた穴を埋めてくれるの? [358195575]