Closed YuhangGe closed 9 years ago
I don't think that's a bug. The character isn't representable in plain Big5 but Big5-2003 or HKSCS should work:
> Iconv('utf8', 'big5').convert('裏')
Error: Illegal character sequence.
# elided
> Iconv('utf8', 'big5-2003').convert('裏')
<Buffer f9 d8>
> Iconv('utf8', 'big5-hkscs').convert('裏')
<Buffer f9 d8>
try
var inconv_gbk = new Iconv('UTF-8', 'GBK//TRANSLIT//IGNORE').convert;
Error: Illegal character sequence.