microwindows icon indicating copy to clipboard operation
microwindows copied to clipboard

add iconv to suport multi-language

Open hzlooker opened this issue 6 years ago • 4 comments

Hi,guys, the function int GdConvertEncoding

(const void *istr, MWTEXTFLAGS iflags, int cc, void *ostr, MWTEXTFLAGS oflags)
int the file devfont.c can not convert a multi-language UTF8 string to UTF-16 string but ASCII. so I add the iconv lib to make this function can convert multi-language UTF8 string to a right way. maybe someone need it. by the way in config need add libiconv and libcharset

devfont.c

devfont.zip

hzlooker avatar Jan 31 '19 13:01 hzlooker

Hi,

Thanks a lot! Can you attach the devfont.c file directly, it didn't show well above. I can then look at it and merge it into the repo.

What languages did you test this with?

Regards,

Greg

ghaerr avatar Feb 03 '19 16:02 ghaerr

get it. test language include : GB18030, Vietnamese,Japanese,Korean,BIG5 and more.

hzlooker avatar Feb 16 '19 21:02 hzlooker