The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
August 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


RE: Encoded characters

Posted by Kishori Sharan on August 24, 2000 at 10:27 PM

I don't know WML, but I can tell what could be your problem. Before you display the string using java you need to set the font of the graphics object which will actually draw your string. If font is set incorrectly then the character will be displayed as "?". I wanted to display a string in java in a particular language . Event if the unicode value I was passing were for the characters in that particular language it was displaying "?" for all characters in string. When I downloaded the font for the language and set the font for the graphics object to that font java displayed the characters correctly.
You may refer to Core Java 2 Volume I page 281 thru 291.



Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us