php - How do you set the Safari browser title with UTF-8 characters in javascript? -


i have updated question make clearer:

i sending word "Über" value in php header response ajax request so:

header('title: ' . 'Über'); 

the word "Über" comes database columns set utf8_general_ci , when echo out word database see correctly.

the problem occurs in javascript when do:

var title = request.getheader('title'); 

i do:

console.log(title); 

in chrome value of title correct (Über), in safari , firefox converted "Ãber".

i think problem might i'm sending value in header rather normal response string.

any appreciated.

quentin right. sending raw unicode in header caused problem. changed normal ajax request , fixed things. help.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -