[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gnu-libiconv] Trouble converting to Japanese charsets
From: |
Jeff Diehl |
Subject: |
[bug-gnu-libiconv] Trouble converting to Japanese charsets |
Date: |
Thu, 5 Nov 2009 16:24:13 -0500 |
I am having trouble converting the string "配信リスト名テスト①" from UTF-8 to
SHIFT-JIS, EUC-JP and ISO-2022-JP using libiconv (version 1.13.1).
Here is a hex representation of the source string:
$ xxd utf8.txt
0000000: e985 8de4 bfa1 e383 aae3 82b9 e383 88e5 ................
0000010: 908d e383 86e3 82b9 e383 88e2 91a0 ..............
The problem seems to be the "circled digit one" character (Unicode
0x2460). Can you please explain why these conversion fail? I was
expecting to see libiconv generate the following strings:
$ xxd sjis.txt
0000000: 947a 904d 838a 8358 8367 96bc 8365 8358 .z.M...X.g...e.X
0000010: 8367 8740 .g.@
$ xxd euc-jp.txt
0000000: c7db bfae a5ea a5b9 a5c8 ccbe a5c6 a5b9 ................
0000010: a5c8 ada1 ....
$ xxd 2022.txt
0000000: 1b24 4247 5b3f 2e25 6a25 3925 484c 3e25 .$BG[?.%j%9%HL>%
0000010: 4625 3925 482d 211b 284a F%9%H-!.(J
Thanks in advance,
--JD
- [bug-gnu-libiconv] Trouble converting to Japanese charsets,
Jeff Diehl <=