mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 21:40:13 +01:00
fix for ks_c_5601-1987 encoding
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
ea1cad8839
commit
b4e1a6cf44
@ -337,6 +337,8 @@ int utf8_encode(char *inbuf, int inbuflen, char *outbuf, int outbuflen, char *en
|
|||||||
|
|
||||||
if(strcasecmp(encoding, "gb2312") == 0)
|
if(strcasecmp(encoding, "gb2312") == 0)
|
||||||
cd = iconv_open("utf-8", "cp936");
|
cd = iconv_open("utf-8", "cp936");
|
||||||
|
else if(strcasecmp(encoding, "ks_c_5601-1987") == 0)
|
||||||
|
cd = iconv_open("utf-8", "EUC-KR");
|
||||||
else
|
else
|
||||||
cd = iconv_open("utf-8", encoding);
|
cd = iconv_open("utf-8", encoding);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user