You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Michael McGrady <mi...@michaelmcgrady.com> on 2004/05/16 17:47:45 UTC
Image Commons Taglibs and i18N 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
LEGAL NOTICE
This electronic mail transmission and any accompanying documents contain
information belonging to the sender which may be confidential and legally
privileged. This information is intended only for the use of the
individual or entity to whom this electronic mail transmission was sent as
indicated above. If you are not the intended recipient, any disclosure,
copying, distribution, or action taken in reliance on the contents of the
information contained in this transmission is strictly prohibited. If you
have received this transmission in error, please delete the message. Thank
you