utf-8 locale on unix machines

T

Tomer Ben-David

Hi

What should be the locale settings of a unix machine if i want to work
with java utf-8 ?

(When i had the local set to "C" i received ??? instead of utf-8
characters)

Thanks
 
G

Gerard Krupa

Tomer said:
Hi

What should be the locale settings of a unix machine if i want to work
with java utf-8 ?

(When i had the local set to "C" i received ??? instead of utf-8
characters)

Thanks

Try 'locale -a' and see if there are any locale names ending in '.utf8'.
On RedHat 9 I found that most locales have a utf8 equivalent (though
not C.utf8) whereas on HP-UX 11.11 only 14 (including C.utf8) exist.

Of course just because the locale exists doesn't mean there are any
fonts available to support its use on a terminal. Other apps may not
work correctly in unusual locales; e.g. gvim displays menus in Catelan
if I set LANG=C.utf8 on HP-UX.

HTH

Gerard
 

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

No members online now.

Forum statistics

Threads
474,436
Messages
2,571,696
Members
48,796
Latest member
Greg L.
Top