ã¯ããã«
ããã«ã¡ã¯ï¼æ ªå¼ä¼ç¤¾ãã¶ã¤ã³ã¯ã³ã»ã¸ã£ãã³ã§ã¨ããã³ã®éçºãæ å½ãã¦ãããµã¼ãã¹éçºé¨ã®å¯ºäºã§ãã
æåã³ã¼ãã使ãéãä»ã®æ代 UTF-8 ã使ããã¨ãã»ã¨ãã©ã§ãããã æ㯠Shift-JIS ã EUC-JP ãªã©ã®æåã³ã¼ããæ··å¨ãã¦ãã¦ãæååãããã°ãã°è¦ããã¾ããããããæ°å¹´ã¯ Web ãã¼ã¸ã§ééãããã¨ã¯ãªãã§ãã (UTF-8 ã® CSV ã Excel ã§éããã¨ããã¨ãã«ã¯ãæååããè¦ã¾ããã...)
ä»ã UTF-8 ã主æµãªã®ã§ãããæåã³ã¼ãã«æ©ã¾ããããã¨ã¯ãªããã ããã£ã¨ããããããã§ãã£ã¦æ¬²ããã£ã...ã
ããã³åé¡
æ°ã¾ããã§ãååã«ä»¥ä¸ã®åé¡ãåºãã¾ããã
ãããã®ããã³ã¯åãã§ããããï¼
ããããã³ ããã³
å®ã¯éãããã³ã§ãã
æååæ
UTF-8 ã«ã¯æååæã¨ãããã®ãã§ãã¾ãã ä¾ãã°ãããã¨åæ¿é³ã足ãã¦ãããã¨ããæåãåæãã§ãã¾ãã ä¸æ¹ããããåä½ã«ãæåã³ã¼ããå²ãå½ã¦ããã¦ãã¾ãã ããã«ããããããã«ã¯2éãã®æåã³ã¼ãã®æ¸ãæ¹ãã§ãã¡ããããã§ãã
ãã®ãã¨ããå®éã«æåã³ã¼ãè¦ã¦ããã¾ãããã âã®ããã³ã papiko.txt ã«ä¿åãã¦ããã¤ããªã¢ã¼ãã§è¦ã¦ããã¾ãã
$ vim -b papiko.txt
vim ã§ãã¾ããªããããããã¨ã§ã
:%!xxd
16é²æ°ã§ãã¡ã¤ã«ã®ä¸èº«ãè¦ããã¨ãã§ãã¾ããã
00000000: e383 8fe3 829a e383 92e3 829a e382 b30a ................ 00000010: e383 91e3 8394 e382 b30a         ..........
1è¡ç®ã1ã¤ç®ã®ããããã³ã2è¡ç®ã2ã¤ç®ã®ããã³ãæãã¦ãã¾ã(è¡æ«ã® 0a
ã¯æ¹è¡ã³ã¼ã)ã
ãããã®æåã³ã¼ãã e3 83 8f
ã§ãåæ¿é³ã®æåã³ã¼ãã e3 82 9a
ã§ããã¾ãã
ã¾ãããããã®æåã³ã¼ãã e3 83 91
ã§ããã®ã§ãåè¡ã®å
é ãè¦ãã¨å¯¾å¿ãã¦ãããã¨ããããã¾ãã
ããã«ãããå é¨çã«ã¯éãæåæ±ãã«ãªãã®ã§ãä¾ãã°æ¤ç´¢ã¨ããããéã«ã¯æ³¨æãå¿ è¦ã§ãã
æåä¸è´å¤å®
æ¤ç´¢ã«æ°ãã¤ããªãã¨ãããªãã§ããã Chrome ã§ã¯ãããã¸ãä¸æããã¦ããã¦ãã¾ãã 試ãã«ããã®ãã¼ã¸ã Chrome ã§éãã¦ãã©ã¦ã¶æ¤ç´¢ã§ãããã³ãã¨æ¤ç´¢ããã¨ã以ä¸ã®ããã«ã¡ããã¨ä¸¡æ¹ã¨ãæ¤ç´¢ããã¦ãã¾ããã
ä¸æ¹ããã®ã¯ã¦ãªããã°ã§èªåçã«ãªã³ã¯ä»ããããæ©è½ã§ãããæååæã®æ¹ã®ããããã³ã«ã¯ãªã³ã¯ãã¤ãããã¦ãã¾ããã ã¤ã¾ãã¯ãæååæã¨åºå¥ãããã¦ãããã¨ã«ãªãã¾ãã
æå¾ã«
ç¹ã«ãªãããã話ã§ã¯ãªãã§ãããåãæåã«è¦ãã¦ãä¸èº«ãéããã¨ãããã¨ãããã¨ã§ãæ¤ç´¢æãªã©ã§ç½ ã«ã¯ã¾ã£ã¦æ©ããã¨ããããããããªãã¨ããã話ã§ããã
仲éãåéãã¦ããã¾ã
åéä¸ã®è·ç¨®ã«ã¤ãã¦ã¯ä»¥ä¸ã御覧ãã ããã