Ok so I am having a problem with encoding. I have this site thats all Estonian. I am outputting text from the DB and from just the echo "Estonian chars". The problem is that echo "Estonian chars" works the trick but anything I pull from the DB that is not standard English latin chars is screwed up.
So I think to myself, "Set the encoding on the DB and with a header()"! Well, that doesn't work. I set the char set to the DB and to all the tables and to each TEXT or VARCHAR field to "utf8_estonian_ci" and did a header('Content-Type: text/html; charset=utf-8'); but still no dice.
The extra characters most used are "üõäö".
Example of what happens:
Code: Select all
<?php
echo "õüäöäöäöüüüüüü";
echo getQuestionWithCrazyCharsFromDb();