Topic
1 reply Latest Post - ‏2011-08-06T17:29:31Z by infyRavi
infyRavi
infyRavi
2 Posts
ACCEPTED ANSWER

Pinned topic special characters are getting displayed as ? even with UTF-8

‏2011-08-02T16:35:51Z |
Hi,
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(System.getProperties());
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

Thanks
Ravi
Updated on 2011-08-06T17:29:31Z at 2011-08-06T17:29:31Z by infyRavi
  • infyRavi
    infyRavi
    2 Posts
    ACCEPTED ANSWER

    Re: special characters are getting displayed as ? even with UTF-8

    ‏2011-08-06T17:29:31Z  in response to infyRavi
    Any updates on this