I\'m having trouble sending or displaying text with special characters from my webservice to my database. On my eclipse I have set the character encoding to UTF-8 but it sti
See if this works.
PrintStream out = new PrintStream(System.out, true, "UTF-8");
out.println(test);
For storing in DB, use following to explicitly encode the string in UTF-8
String newString = new String(test.getBytes(), "UTF8");
If you are using Eclipse, then
may be you need to decode your character string to ISO-8859 first and then encode it to UTF-8
Yeah, its the XXI. century and we're still struggling with things like character encoding...
My first guess is that either: