How can I use a foreign language char in Swing

Martin v. Loewis martin at v.loewis.de
Mon Mar 4 02:52:34 EST 2002


"Jason Orendorff" <jason at jorendorff.com> writes:

> > I installed J2SDK 1.4.0 several days ago. I need to get some strings from
> > database which stored in GB2312 encode method, and display it
> > using Swing. I
> > got correct result in Windows2000(Use China as default region and
> > GB2312 as
> > encode method.) While I¡¡run it on Windows(English Edition), all I can see
> > is ?????.
> >
> > What should I do? I think ResourceBoundle can't help me. Is there
> > any other
> > method can help me?
[...]
>   1.  Missing Fonts.  Seems unlikely.  But if this is the problem,
>       it's easy to fix.  :)

Actually, this is quite likely: MS normally choses "?" as the
replacement character, and you need to explicitly request CJK fonts
when installing the English edition of W2k. If "Windows" really means
"W9x" in this context, things are probably even worse.

Regards,
Martin



More information about the Python-list mailing list