my dog learned polymorphism*
The moose likes Applets and the fly likes Any idea about encoding? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Any idea about encoding?" Watch "Any idea about encoding?" New topic
Author

Any idea about encoding?

HaoZhe Xu
Ranch Hand

Joined: Nov 03, 2003
Posts: 222
I wrote a visual map Applet, it's like a map viewer that you can zoom in/zoom out and detect the distance between two points, but the question is, when the text resource is in UTF format (created by a Java program that uses DataOutputStream), it can be displayed if the system support the character encoding (e.g. Chinese Simplified GB2312) but if the resource is in plain text format, it cannot be displayed if your system's region is not corrosponding region even you have that character encoding.

Is the only way to solve it to make all text resource in UTF format
or is there any other ways?

thanks

the address of my Applet:
City Walker


[url]Olnex.net[/url]
[SCJP 1.2, SCJD, SCWCD]
 
wood burning stoves
 
subject: Any idea about encoding?