When we are execur ting the below code we are getting output as ? for special characters
public static void testUTF8Characters() throws Exception
String spChars = "123 í, ©, ®";
System.out.println("spChars : " + new String(spChars));
System.out.println("UTF-8 spChars: " + new String(spChars.getBytes("UTF-8"), "UTF-8"));
System.out.println("ISO-8859-1 spChars: " + new String(spChars.getBytes("ISO-8859-1")));
We are using websphere application server 7.0 and the above code works fine on local RAD but when we deploy on DEV machine we see ???
Please let me know what can be the issue
Pinned topic special characters are getting displayed as ? even with UTF-8
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2011-08-06T17:29:31Z at 2011-08-06T17:29:31Z by infyRavi