æåã³ã¼ãï¼UTF-8,Shift_JIS,EUC-JP,ISO-2022-JPï¼ã«ã¤ãã¦ã®ä¿ºçã¾ã¨ã
ãããã°ã©ãã®ããã®æåã³ã¼ãæè¡å
¥éããèªãã§èªåãªãã«ç解ããç¹ãã¶ãã¯ãªã¨ã¾ã¨ãã¦ã¿ãã
ããã»ã©æ£ç¢ºæ§ãæ±ãã¦æ¸ãã¦ããããã§ã¯ãªãã®ã§ãééã£ã¦ãå¯è½æ§å¤§ã§ãã
ééããªã©ããã°ã³ã¡ã³ããªã©é ããã¨ãããããã§ãã
ããããã®æåã³ã¼ãã¯ã©ãéãã®ãï¼
æ¥æ¬èªã®æåã³ã¼ãã¯å¤§ãã以ä¸ã®ï¼ã¤ã«åãããã
- JIS X 0208 æåéåããã¼ã¹ã«ãããã®
- Unicodeæåéåããã¼ã¹ã«ãããã®
JIS X 0208 æåéåããã¼ã¹ã«ããæåã³ã¼ãã«ã¯ãEUC-JP, Shift_JIS, ISO-2022-JP ãããã
Unicodeæåéåããã¼ã¹ã«ããæåã³ã¼ãã«ã¯ãUTF-8, UTF-16 ãªã©ãããã
ä¸ã§æãããæåã³ã¼ããã¨ã¯æ£ç¢ºã«ã¯ãã¨ã³ã³ã¼ãã£ã³ã°ï¼æå符å·åæ¹å¼ï¼ãã®äºãæãã
æåéåã£ã¦ï¼
èªãã§ãã®ã¾ãã¾âæåã®ç¨®é¡ã®éã¾ãâãããã£ã©ã¯ã¿ã¼ã»ãããã¨ãå¼ã¶ã
ãã¡ã°ãåç´ãªæåéåã¨ãã¦ã¯ãASCII ãæãããããASCIIã¨ããæåéåã«ã¯è±å,æ°å,è¨å·etcãªã©ãå«ã¾ãã¦ããã
æ¥æ¬èªã表ç¾ããããã«å¿
è¦ãªã²ãããªãæ¼¢åãå«ãæåéåã¨ãã¦ã¯å
ã«æãããJIS X 0208 ã¨å¼ã°ããã®ãã®ã¨ãããç¥ããã Unicode ãããã
æåéåã«ç»é²ããã¦ããæåã¯ãããããæåéåã®ä¸ã§ã®ä½ç½®ãèå¥ããããã®ãçªå·ã(符å·ä½ç½® = Code position ã¨ã Code point ã¨å¼ã°ãã)ãæã£ã¦ããã
JIS X 0208 ãªããã§ã¯ããåºãã¨ãç¹ãã§æåã®ä½ç½®ãå¤å¥ãããåããæãè¨ãã¨è¡¨ã®ãè¡ãã¨ãåãã¨èªã¿æ¿ããã°ããã
JIS X 0208 ã®åºç¹ã³ã¼ãã®ä¸è¦§ã¯ä»¥ä¸ã®URL(注:PDFææ¸)ããåç
§ã§ãã
http://www.itscj.ipsj.or.jp/ISO-IR/168.pdf
ä¸æ¹ã®Unicodeã§ã¯ãæåã«16é²æ°ã§å¤ãå²ãå½ã¦ã¦ãã¦ã16é²æ°ã®é ã«"U+"ãä»ã㦠U+XXXX ã¨ããå½¢å¼ã§ç¬¦å·ä½ç½®ã表ãã¦ããã
以ä¸ãå
¬å¼ãã¼ã¸ãªã©ããåç
§ã§ããã
http://www.unicode.org/charts/
è¦ããã«æåã³ã¼ãã£ã¦ä½ãªã®ãï¼
Shift_JIS, EUC-JP, UTF-8 ãªã©ã®ä¸è¬çã«ãæåã³ã¼ããå¼ã°ãããã®ã¯ãããããã®æåéåã«å«ã¾ããæåã«ã¤ãã¦ããã®ã符å·ä½ç½®ãã示ããçªå·ããããããç¬èªã®æé ãè¨ç®å¼ã«ãã£ã¦ãã¤ãåã®è¡¨ç¾ã«å¤æãããã®ã
以ä¸ã代表çãªæåã³ã¼ãï¼ç¬¦å·åæ¹å¼ï¼ã«ã¤ãã¦ããã®æ±ãæ¹ã説æãã¦ã¿ãã
ISO-2022-JPï¼JISã³ã¼ãï¼
ãã¡ã°ãç°¡å*1ã
ã³ã¼ãä½ç½®ã示ãåºã¨ç¹ã2ãã¤ãã®16é²æ°ã®è¡¨ç¾ã«å¤æãã¦ãããããã®ãã¤ãã«0x20ã足ãããã®ã JISã³ã¼ã ã«ãªãã
EUC-JP
ãããç°¡åã
ã³ã¼ãä½ç½®ã示ãåºã¨ç¹ã2ãã¤ãã®16é²æ°ã®è¡¨ç¾ã«å¤æãã¦ãããããã®ãã¤ãã«0xA0ã足ãããã®ã EUCã³ã¼ã ã«ãªãã
Shift_JIS
çµæ§è¤éã
è¨ç®å¼ã使ã£ã¦æ±ãããä¸å³åç
§ã
UTF-16
ãµãã²ã¼ããã¢ã¨ãèããªããã°ç°¡åãã³ã¼ãä½ç½®ã示ãæ°å¤ããã®ã¾ã¾UTF-16ã®ã³ã¼ãã«ãªãããã ãã16ãããã®æ°å¤ããã¤ãåã¨ãã¦è¡¨ç¾ããã¨ãã«ããã°ã¨ã³ãã£ã¢ã³ã¨ããªãã«ã¨ã³ãã£ã¢ã³ãæèããå¿ è¦ãããã
UTF-8
ASCIIã¨äºæããããASCIIã®ç¯å²ã®æåã§ããã°1ãã¤ãã§è¡¨ç¾ã§ãã¦ãä»ã®æåã³ã¼ããããæ¯è¼ç楽ã«å¤è¨èªã«å¯¾å¿ã§ããã®ã§ãç¾å¨ãåºã使ããã¦ããã
ã³ã¼ãã®æ±ãæ¹ã¯ç¬ç¹ã
以ä¸ã®å³åã³è¡¨ãåç §ã
âæâã¨ããæåã®ã³ã¼ãä½ç½® U+611B ã¯ä¸è¡¨ã®3åç®ã«è©²å½ãã
ã³ã¼ãä½ç½® | 1æåãæ§æãããããå | ãã¤ãæ° |
U+00000000 ã U+0000007F | 0xxxxxxx | 1ãã¤ã |
U+00000080 ã U+000007FF | 110xxxxx 10xxxxxx | 2ãã¤ã |
U+00000800 ã U+0000FFFF | 1110xxxx 10xxxxxx 10xxxxxx | 3ãã¤ã |
U+00010000 ã U+0010FFFF | 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx | 4ãã¤ã |
æåã³ã¼ãå¤æã¨ãå¤å¥ã¨ã...
ã«ã¤ãã¦ãå¾ã§æ¸ãï¼äºå®ï¼
追è¨:ãã®ã¨ã³ããªã§æ¸ãã¦ããªããã¨
å®éã®ããã°ã©ãã³ã°ã§ã«ããã«æããæåã³ã¼ããæ±ãå ´åãããã¡ãã£ã¨èæ ®ããªããã°ãããªããã¨ãããã¾ãã
以ä¸ã®ç¹ã«ã¤ãã¦ã¯ããã®ã¨ã³ããªã§ã¯è§¦ãã¦ãã¾ããã
- ISO-2022-JP ã§æåéåãåãæ¿ããã¨ã¹ã±ã¼ãã·ã¼ã±ã³ã¹ã«ã¤ãã¦
- EUCã§æåéåãåãæ¿ããã·ã³ã°ã«ã·ããã«ã¤ãã¦
- Unicodeã§ã®æåã®åæã«ã¤ãã¦
- UTF-16ã§ã®ãã¤ããªã¼ãã¼ï¼ãµãã²ã¼ããã¢ã«ã¤ãã¦
追è¨:ããã°ã©ãã®ããã®æåã³ã¼ãæè¡å ¥é
ãã®ã¨ã³ããªãæ¸ããã£ãã¨ãªã£ãæ¸ç±ã§ãã
- ä½è : ç¢éåä»
- åºç社/ã¡ã¼ã«ã¼: æè¡è©è«ç¤¾
- çºå£²æ¥: 2010/02/18
- ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼
- è³¼å ¥: 34人 ã¯ãªãã¯: 578å
- ãã®ååãå«ãããã° (129件) ãè¦ã
*1:ã·ããã¤ã³ãã·ããã¢ã¦ãã®èãæ¹ãããªããã°...