I am new to Java and have been battling this problem with google-fu ad experimentation for the last hour. I need to convert s1 to s2, where s1 and s2 are:
String s1 ="\\u00C1";
//...
String s2 ="Á";
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to scan the string to find the “\u” part, then extract the following four characters into a separate string, then use
Integer.parseInt(String s, int radix)with a radix of 16 to convert00C1to anint, and then cast thatinttochar.