File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes qs to those who worked on JAVA INTERNATIONALIZATION Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "qs to those who worked on JAVA INTERNATIONALIZATION" Watch "qs to those who worked on JAVA INTERNATIONALIZATION" New topic
Author

qs to those who worked on JAVA INTERNATIONALIZATION

waseem soomro
Greenhorn

Joined: Mar 26, 2003
Posts: 10
hello all.
I m making a java game in which i m using java unicode charachters..
as this is beging of my prject..
I M HAVING PROBLEM IN DISPLAYING UNICODE CODE CHARACHTERS IN JAVA APPLET..
PLEASE HELP ME .. thnx in advance.
rgds. waseem


========================<br />WaseeM. :-)
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
What is the problem? Can you show us the code that does not work?


"JavaRanch, where the deer and the Certified play" - David O'Meara
waseem soomro
Greenhorn

Joined: Mar 26, 2003
Posts: 10
Well i can just display code avialable in Ascii
for example:
import java.applet.*;
import java.awt.*;
public class TestApplet extends Applet
{
public void paint(Graphics g)
{
String house = "\u0628" + "\u064e" + "\u064a" +
"\u0652" + "\u067a" + "\u064f";
g.drawString(house, 10, 20);
}
}
--- this code should display an arabic word. but it shows small boxes.
i think its font problem. If its is font problem so how can i solve that, n get the display..
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
And what was the logic behind closing The Moose's Forum?


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
waseem soomro
Greenhorn

Joined: Mar 26, 2003
Posts: 10
Originally posted by Michael Morris:
And what was the logic behind closing The Moose's Forum?

Looks like u r planing to do that.
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hello Waseem and welcome to JavaRanch.
You're gonna make me be serious here aren't you? Well, your code does display something resembling the glyphs I've been seeing every night on Fox News in appletviewer on my machine. Whether they are Arabic or not I couldn't say for sure (please excuse my lack of diversity ) but they definitely don't look like boxes. Try running it in appletviewer and if that doesn't work then try reading this thread Start my machine
Michael Morris
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: qs to those who worked on JAVA INTERNATIONALIZATION