Web tier: servlets, JSP, Web frameworks: Special characters Ü and Ä problem with servlets and mysql 3.23

  1. 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,
  2. 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).