fix for ks_c_5601-1987 encoding

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2018-01-23 20:00:20 +01:00
parent ea1cad8839
commit b4e1a6cf44

View File

@ -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);