Display data containing accented character from string using utf-8 encoding in Java

64 Views Asked by At

Hi everyone I am creating a HTML table in Java and sending it to Symphony bot UI. While creating HTML table I am getting some text from database which has latin word and those are not showing properly on Symphony UI which uses HTML 5.

String input = "Montañes";
byte[] ipBytes = input .getBytes("ISO-8859-1");
 input = new String(ipBytes , "UTF-8");
String output = <table><tr><td>input</td><tr></table>

By doing above encoding I am not able to see correct result. In symphony UI I am seeing below HTML table output. Monta?es

Please suggest how I can show correct value in html table of Symphony UI.

0

There are 0 best solutions below