java - Special characters(Registered trademark, TM- trademark, smiley etc.) are not displayed correctly on the UI -
i developing webpage(.jsp) m fetching data in form of json object , parsing display on ui, display not correct.e.g.,blackberry� etc. have written business logic in java code. when have checked response in java, correct.
to fix issue, put work-around change particular characters html form(e.g., registered trademark, replaced htmlcode , worked.but, data long, don't think practice.
i have checked answers, found encodiong issue. but, when checked html file, there as
<meta http-equiv="content-type" content="text/html; charset=utf-8">
could provide on this.
thanks in advance!!
when building json string, strings within must encoded in utf-8. requirement of json. seems you're failing this, , therefore receiving end of json cannot read character (since characters in 128-255 range invalid unless encoded properly)
check encoding json being written fix issue.
Comments
Post a Comment