Is java internationalized by design or it isn't?

O

onetitfemme

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
 
L

Lothar Kimmeringer

onetitfemme said:
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
--
Lothar Kimmeringer E-Mail: (e-mail address removed)
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)

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

onetitfemme

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...ml#String(byte[], int, int, java.lang.String)
..
otf
 
O

Oliver Wong

onetitfemme said:
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...ml#String(byte[], int, int, java.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
 
O

onetitfemme

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
 
O

Oliver Wong

onetitfemme said:
otf: you have ...
.
otf: Does it? ...
.
I was clearly speaking about opening -non-ASCII pages- in basic,
java-based Browsers.
otf

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

- Oliver
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,079
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top