Results 1 to 3 of 3
- 01-15-2009, 11:45 PM #1Member
- Join Date
- Dec 2008
- Rep Power
Character encoding in Java (Linux to Windows)
Since I'm from Sweden, I use the swedish letters å, ä and ö a lot in my Java applications. And since I'm on linux, using UTF-8, those letters get quite screwed up on Windows.
So how can I set the default character encoding to UTF-8 in my applications? Or does something like htmls å, ä and ö exist in Java?
- 01-16-2009, 02:15 PM #2
I worked on this for about ten minutes, did not find much but the general area is somewhere in "java.nio.charset.CharsetDecoder"Introduction to Programming Using Java.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
- 01-16-2009, 07:24 PM #3
Java uses UTF-16 internally, so it should handle your character set fine by itself.
UTF-8 certainly will not work; in fact, you will lose your characters.
Java allows you to set the locale, I suggest looking into that as a start. The locale will choose an appropriate character set and integrate with the OS.
Also, make sure the OS locale is set correctly.
- By Eranga in forum Advanced JavaReplies: 6Last Post: 04-08-2009, 04:05 AM
- By jfcup in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 10-24-2008, 07:55 PM
- By nitinpjairaj in forum NetworkingReplies: 3Last Post: 08-26-2008, 06:14 PM
- By bugger in forum New To JavaReplies: 2Last Post: 11-09-2007, 09:54 PM
- By Alan in forum Advanced JavaReplies: 2Last Post: 05-31-2007, 02:30 PM