html5 - HTML Special characters show as question mark on one server but not the other -


i have wordpress website in using sort of calendar in multiple languages. in french special characters ô... displayed on staging server, converted question marks on live server. can point out how solve ?

the dates generated php:

$langcode = "fr_fr"; setlocale(lc_all, $langcode); $mysqldate = strtotime(get_post_meta(get_the_id(), 'date', true)); $month = ucwords(strftime("%b", $mysqldate)); 

also in head utf-8 set

<meta charset="utf-8"> 

setlocale depends on system, specially if using windows, if provide code page utf-7 or utf-8, setlocale fail, returning null.

here check msdn reference : http://msdn.microsoft.com/en-us/library/x99tb11d.aspx


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -