Anyone tell me if I'm wrong, but I doubt if UTF-8 covers Chinese. As I see it, it only contains 8 bits per character, instead of ASCII's 7 bits, and for that reason I assume it only covers 2* the number of chars. Maybe you can try UTF-16 instead?
Jeroen > -----Oorspronkelijk bericht----- > Van: Michael McGrady [mailto:[EMAIL PROTECTED] > Verzonden: zondag 16 mei 2004 17:47 > Aan: Struts Users Mailing List > Onderwerp: UTF8 and Chinese > > I am trying to use the image tags from Commons sandbox taglibs. I am > trying to use them with Chinese. The Western European languages work fine > with them, but the same thing does not work with Chinese. I am doing the > following, in essence: > > // Welcome in Chinese > String original = new String("\u6b22\u8fce"); > > and > // "Welcome" in Chinese > String original = new String("\u6b22\u8fce"); > byte[] utf8Bytes = original.getBytes("UTF8"); > original = new String(utf8Bytes,"UTF8"); > > Neither works. I just get the proverbial square boxes on the resultant > images. Anyone have any ideas? > > Thanks, Michael --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]