Help please, I have to print unicode strings caming from a database (oracle stored procedure => mapping into a java object) into a JSP page (with stuts1), I used this :
String unicodeStr = myBean.getTitle();//return from database the unicode string (something like this : Uygulama g\u00fcvenli\u011fi ile).
String isoString = org.apache.commons.lang.StringEscapeUtils.escapeHtml(unicodeStr);
my problem is that the unicodeStr
came with "\\"
for each "\"
(Uygulama g\\u00fcvenli\\u011fi ile
) so my StringEscapeUtils.escapeHtml
can not detect unicode caracters like "\u00fc"
because of the "\"
in the begining.
I tried unicodeStr.replaceAll("\\","\")
, but it can't compile since the "\"
is not allowed in string without escapement.