I'm facing with the problem that the text displayed in my <div>
using ng-bind-html do not show some characters correctly.
I get data from $.post where my php returns the excerpt using utf8_encode in json format.
The fact is that the original text is:
Akinori Goto created this gorgeous 3D printed zoetrope that explores the relationship between time and movement. The design won both the Runner-up Grand Prix and the Audience Award at this year's Spiral Independent Creators Festival in Tokyo.
and what's rendered in my screen is:
Akinori Goto created this gorgeous 3D printed zoetrope that explores the relationship between time and movement. The design won both the Runner-up Grand Prix and the Audience Award at this year’s Spiral Independent Creators Festival in Tokyo.
What can I do?
Two things you can try:
<head>
of your HTML page: <meta charset="UTF-8">
utf8_encode
from your PHP script (if the string is already UTF8 encoded you might not need to call that function).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.