Frédéric in java converted to Frédéric.
However i need to pass the proper string to my client.
How to achieve this in Java ?
Did tried
String a = "Frédéric";
String b = new String(a.getBytes(), "UTF-8");
However string b also contain same value as a.
I am expecting string should able to store value as : Frédéric
How to pass this value properly to client.
Stringto your client? What is the client written in and how is it processing yourString?Stringyou create will be in that format. You can get the corresponding utf-8 bytevector like"Frédéric".getBytes(Charset.forName("UTF-8"))if that's what you want.