I have a text encoded from php with an ajax function with de php utf8_encode.If I print it in the console directly the text is displayed as follows :
"projects":[
{
"id": "1",
"title": "CURSOS DE PERIODISME",
"description": "Els cursos tenen l\u0092objectiu d\u0092aprofundir en l\u0092actitud period\u00edstica dels alumnes."
}
]
When I use the jquery.parseJSON and print the text again into the description, the text is parsed as follows:
Els cursos tenen lobjectiu daprofundir en lactitud periodística dels alumnes.
All other unicode characters are well parsed, but why \u0092 is not parsed? What I'm doing wrong?
Thanks in advance!
JSON.parse
parses your string correctly including\u0092
. – Lakeishalakeland