ghaerr / microwindows

The Nano-X Window System
Other
659 stars 90 forks source link

add iconv to suport multi-language #14

Open hzlooker opened 5 years ago

hzlooker commented 5 years ago

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

ghaerr commented 5 years ago

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

hzlooker commented 5 years ago

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