Using Chinese (not i18n)
Armel Asselin
armelasselin at hotmail.com
Mon Jan 22 06:59:15 PST 2007
> I'm using wx 2.8, self-compiled, (unicode), on WinXP.
>
> I'd like to write an application that can load/save/write Chinese
> characters.
> It should be able to do this no matter what the current locale is. So this
> is not about localisation, po/mo files etc. (though that may come as well
> some time).
>
> I already looked in the forum and the mailing list archives, but I
> couldn't
> find the answers I was looking for. I have already programmed with wx but
> never with Unicode, multi-byte encodings etc.
>
> 1. What is the best format to store Chinese characters in a file (from the
> wx handling point of view)? The standard Chinese-English dictionary
> file is available in utf, big5 and gb.
>
> http://www.mandarintools.com/cedict.html
from an handling point of UTF is always the best.
> 2. Does wx need to be Unicode? Doesn't matter for me but I want to make
> sure.
yes, else it will try to convert to current locale before setting labels for
example, many text fields won't work as well.
> 3. What wx classes should I use to load/save Chinese text? That probably
> depends on the answer to 1).
I suspect that wxTextFile could be interesting for you.
> 4. What is the best way to output/input Chinese text on screen?
>
> I had a look in the samples but the internat sample is not what I'm
> looking
> for. And the others didn't seem like they would help me either.
>
> If this is already explained in the wiki or some other place I'll happily
> read through it, just point me there.
hum don't know for this one, maybe wxRichTextCtrl ?
HIH
Armel
More information about the wx-users
mailing list