Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

qs to those who worked on JAVA INTERNATIONALIZATION

 
waseem soomro
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the problem? Can you show us the code that does not work?
 
waseem soomro
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And what was the logic behind closing The Moose's Forum?
 
waseem soomro
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic