Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

Is java internationalized by design or it isn't?

Thread view: 
onetitfemme - 24 Sep 2006 16:10 GMT
I just used Marti Halls simple java based very simple Browser to check
out how it would render non-ASCII based languages and formulas, but all
I could see was the funny little boxes java shows you when it can not
print characters
.
I tried as examples
.
// __ http://www.mozilla.org/projects/mathml/demo/basics.xhtml
.
// __ http://www.xoops.cn/
.
What do you have to do to make this simple Browser properly display
these characters? DO you know of any other java based Browser that can
do that?
.
onetitfemme
Lothar Kimmeringer - 24 Sep 2006 16:29 GMT
>  What do you have to do to make this simple Browser properly display
> these characters? DO you know of any other java based Browser that can
> do that?

I don't know the program, but it's not only the application but
the font you use for displaying the characters. If the font in
use don't contain the characters they are often shown as boxes
(Java would replace them by ?, if there would be problems with
the encoding being used for reading/writing the characters). So
in the first place you should switch to a font, that contains
the complete Unicode-set.

Regards, Lothar
Signature

Lothar Kimmeringer                E-Mail: spamfang@kimmeringer.de
              PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)

Always remember: The answer is forty-two, there can only be wrong
                questions!

onetitfemme - 24 Sep 2006 23:51 GMT
well actually I think it is an oversight from the developers thinking
they can cast all web pages as ASCII ones.
.
Something that I found a little bit odd is that when I tried to view
say CHinese pages using JBrowser (www.bysoft.se/sureshot/jbrowser/)
which content type were tagged as:
.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
.
you could see chinese characters showing on the window bar of the
java/Swing WIndow (the exact same ones showing on Firefox and on the
"title" tag in the source), but the java app is not displaying actual
chinese chars
.
http://juyou.linktone.com/default.lt
.
I think the String class' UTF-8 based ctor should be used and probably
the JTextPanes need some extra UTF-8 tweaking
.
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#String(byte[],%20i
nt,%20int,%20java.lang.String
)
.
otf
Oliver Wong - 25 Sep 2006 15:08 GMT
> well actually I think it is an oversight from the developers thinking
> they can cast all web pages as ASCII ones.
[quoted text clipped - 16 lines]
> .
> http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#String(byte[],%20i
nt,%20int,%20java.lang.String
)

   FWIW, I've written a Java application that can display Chinese
characters just fine (it's actually a flashcard-like tool for learning
Japanese), and I didn't have to do anything special. Java supports Unicode
(the basic multilingual plane part of it, anyway, which include
Chinese/Japanese/Korean) by design.

   - Oliver
onetitfemme - 26 Sep 2006 18:29 GMT
> I've written a Java application that can display Chinese characters just fine ...
otf: you have ...
.
> Java supports Unicode
otf: Does it? ...
.
I was clearly speaking about opening -non-ASCII pages- in basic,
java-based Browsers.
otf
Oliver Wong - 26 Sep 2006 19:50 GMT
>> I've written a Java application that can display Chinese characters just
>> fine ...
[quoted text clipped - 6 lines]
> java-based Browsers.
> otf

   Sorry, I had somehow gotten the impression you were speaking about
whether java is internationalized by design or not.

   - Oliver


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.