If I used your test and it worked fine:
Code: Select all
var title = "something \xEE\x80\x80 bla bla";
alert('Before: ' + title);
alert('After: ' + title.replace(/\xEE\x80\x80/g, "<strong>"));
Using the the following HTTP viewer that has HEX output:
http://www.rexswain.com/cgi-bin/httpview.cgi, I verified that characters (to be replaced) returned from the JSON response are HEX
EE8080:
Code: Select all
B0: 73223A5B7B225469 746C65223A22[b]EE80[/b] s":[{"Ti tle":"••
C0: [b]80[/b]4D6F6DEE80812C 20[b]EE8080[/b]6170706C •Mom•••, ·•••appl
D0: 65EE808120[b]EE8080[/b] 706965EE80812061 e•••·••• pie•••·a
But with this code, the characters are ignored:
Code: Select all
title.replace(/\xEE\x80\x80/g, "<strong>");
I am baffled!
Jeff in Seattle