Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Dealing with regional settings (Croatian)

0 views
Skip to first unread message

Hidden

unread,
Dec 14, 2001, 12:01:32 PM12/14/01
to
Please, can you explain me on a practical examples (code) how java (jdk1.3)
works with regional settings. I have a few problems:

1. some sort of my print preview (in my application) shows croatian
characters just fine, but on the paper instead the croatians fonts I get a
squares.
2. when I reading data from an interbase file (and put it in a JTable
implementation), I also get squares on a place where croatian characters
should be.
3. In a JTable implementation (when I change the data), croatian characters
are ok, but if I get that data and print with the: System.out.println(" "),
instead croatian characters I get the question mark
4. when I write into database (InterBase), I get SQLException, from the same
reason, I think.

I ask you again for an explaination and a short code examples because I know
that Java use a Unicode and my system Croatian settings(Cp1250), but I
cannot put together all these things. It is the same "formula" for an other
regions.
THANK YOU ON A HELP

Paul Lutus

unread,
Dec 14, 2001, 12:49:52 PM12/14/01
to
"Hidden" <mario...@inet.hr> wrote in message
news:9vdbdu$l82$1...@sunce.iskon.hr...

> Please, can you explain me on a practical examples (code) how java
(jdk1.3)
> works with regional settings.

1. Do not cross-post. Choose one newsgroup. Make one post.

2. The reason for each and every one of these errors is the absence of a
suitable font. If you cannot print Croatian, it is because the printer
doesn't have a suitable font. If you cannot display Croatian on the console
screen, it is because the screen driver doesn't have a suitable font. If
data from a database is not correct, same reason.

Read about how Unicode works.

http://java.sun.com/docs/books/tutorial/i18n/text/convertintro.html

--
Paul Lutus
www.arachnoid.com


0 new messages