Hi I am saving mostly English and German characters to the mysql database, which is currently configured for utf-8 encoding.
I assume that I should use the Latin encoding for this data type, is this true?
If so, how can I change the encoding to correct the German characters that are now stored in utf-8?
UPDATE
Maybe this is a return problem ... When I export data from db via php, of course, I return utf-8, can I do a restore to give me latin1?
UPDATE 1
Ok I am creating a website, the html encoding is uft-8, db is uft-8, and now I want to run some export and extract the data that should be returned on the excel sheet, and the data is utf -8, but here I need characters latin1 ... or the encoding of an excel sheet extracted from db should be such that Tรยถst displays Tรคst. Right now I get such data โ Tรยถst
UPDATE 2
I use the following php script to dump:
http://www.fundisom.com/phparadise/php/databases/mySQL_to_excel
on line 48 I changed the code to
header("Content-Type: application/$file_type; charset=utf-8");
no change in behavior.
How can i solve the problem?
Almost a solution
<?php $text = "รยถ is a valid UTF-8 character"; echo 'Original : ', $text, PHP_EOL; echo 'TRANSLIT : ', iconv("UTF-8", "ISO-8859-1//TRANSLIT", $text), PHP_EOL; echo 'IGNORE : ', iconv("UTF-8", "ISO-8859-1//IGNORE", $text), PHP_EOL; echo 'Plain : ', iconv("UTF-8", "ISO-8859-1", $text), PHP_EOL; ?>
here is what i need, i think ... but i need to check it in context of php script ... tomorrow :-)