January182009

text

PHP MySQL and encoding

So here we go with new site design and all, and one thing that drives me up the wall is the encoding mess.

I have a hungarian lanuage blog, sitting in MySQL using utf-8 encoding. Wordpress reads it perfectly, in MySQL every special character shows up correctly.

Then I try to read it with PHP - page encoding: utf-8 -, and it says the text read is ISO 8859-1, and it shows a garbled mess with every special character replaced by a question mark in dark square.

So I have to salvage the Wordpress code and see how it reads the post content without messing up everything.

Comments (View)
blog comments powered by Disqus

← Previous Post

Next Post →