Unicode encoding problem on web server

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
zabeehkhan
Forum Newbie
Posts: 1
Joined: Fri Jul 22, 2011 2:06 am

Unicode encoding problem on web server

Post by zabeehkhan »

Hello everyone,
hope someone can help me with this encoding problem here.

I am working on a website and have almost fully deployed it. I kinda have developed a custom CMS for it. It's used for article publishing, management, etc.

Now, the problem is that on my local computer where I do my development, everything is working fine, but when I uploaded the whole website to the server, the text isn't properly appearing and instead ??? appear.

The text is Pashto and Urdu (Arabic kinda writing) and on my local computer I am using Wamp 5 with PHP 5.2.5. Everything is fine locally as I just said.

On server the PHP version is 5.2.xx.. I (don't exactly remember the last part atm). So the versions are almost the same. The database collations are all properly set to utf8_general_ci and I am also using "SET NAMES UTF8" (Whatever it is) before querying data from MySQL.

It's kinda strange.. and I am really not sure what to do now as everything is fine in my local server. Any help?
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Unicode encoding problem on web server

Post by VladSun »

What's the encoding of the output page (in the browser)?
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply