darkdmr Posted December 31, 2006 Share Posted December 31, 2006 I have some problems with charset.I make a script to get keywords from google URL-s.For example :http://www.google.bg/search?q=sporting+bet+bg&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:officialThis is ok. But when a search keyword is in my language (bulgarian), I do url_decode to the keyword and print it.However, in the browser I can't see the word, I see something like this :класиране чемпиъншипWhen I see the source of the HTML, I see it it normally like it should be. Any suggestions ? Link to comment https://forums.phpfreaks.com/topic/32406-solved-problem-with-charset/ Share on other sites More sharing options...
darkdmr Posted December 31, 2006 Author Share Posted December 31, 2006 HmmmI had a <meta http-equiv="content-type" content="text/html; charset=UTF-8">And it didnt work.When I added header('Content-Type: text/xml, charset=utf-8');It worked. Very strange, I see the php header is more powerful than the HTML META TAG. Link to comment https://forums.phpfreaks.com/topic/32406-solved-problem-with-charset/#findComment-150518 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.