mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 00:21:59 +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)
|
||||
cd = iconv_open("utf-8", "cp936");
|
||||
else if(strcasecmp(encoding, "ks_c_5601-1987") == 0)
|
||||
cd = iconv_open("utf-8", "EUC-KR");
|
||||
else
|
||||
cd = iconv_open("utf-8", encoding);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user