Web技術勉強会 第34回
- 1. Web技術勉強会 第34回
文字コードについて
Ryuichi TANAKA.
Blog: http://blog.livedoor.jp/mapserver2007/
Twitter: @mapserver2007
- 16. 用語の確認
BOM
Byte Order Mark
UTF-16(UTF-8にもつけられる)の先頭に
つけるU+FEFE(0xFEFE)のこと
UTF-8ではEF BB BF
BOMがつくとリトルエンディアン
BOMがつかないとビッグエンディアン
- 25. <html>
<head>
<script>
function length(e) {
alert(e);
alert(e.length);
}
</script>
</head>
<body>
<input type="button" onclick="length('u3042');"
value="あ"/>
<input type="button" onclick="length('u20B9F');"
value="𠮟"/>
</body>
</html>