Hello guy's i am having a problem on linux when i try to save a string containing characters like Ü and Ä which are special characters on windows xp its work fine but on linux 8 and with mysql 3.23.58 it gives me access vialation error, please help me to solve this problem,
any help from you guys will be highly appriciable
thanks in advance,
Raheel
Discussions
Web tier: servlets, JSP, Web frameworks: Special characters Ü and Ä problem with servlets and mysql 3.23
-
Special characters Ü and Ä problem with servlets and mysql 3.23 (1 messages)
- Posted by: Zeeshan Haider
- Posted on: May 09 2004 15:38 EDT
Threaded Messages (1)
- Special characters Ü and Ä problem with servlets and mysql 3.23 by Paul Strack on May 10 2004 11:22 EDT
-
Special characters Ü and Ä problem with servlets and mysql 3.23[ Go to top ]
- Posted by: Paul Strack
- Posted on: May 10 2004 11:22 EDT
- in response to Zeeshan Haider
Its a text encoding proposal. The character set used on windows is Cp1252. You probably want UTF-8 or UTF-16 (the two most common internationalized character sets).
You can use the String(byte[] bytes, String charsetName) constructor to convert from an array of bytes in Cp1252 to Java's native String format (UTF-16).