Allgemein • DZCP UTF8 Help!! please!!!! |
13.09.2010, 14:55 - chfs - Forumrang: Plappermaul - 9 Posts
I need to change encoding and on UTF8 does not work I diacritics! I changed the database encoding on UTF8 after index.html charset I have my language slovak.php (Slovakia) diakritics +ľščťžýáíé=´úäô but I am not the characters, please!! in bbcode.php is this function function spChars($txt) { $txt = str_replace("Ä","Ä",$txt); $txt = str_replace("ä","ä",$txt); $txt = str_replace("Ü","Ü",$txt); $txt = str_replace("ü","ü",$txt); $txt = str_replace("Ö","Ö",$txt); $txt = str_replace("ö","ö",$txt); $txt = str_replace("ß","ß",$txt); $txt = str_replace("€","€",$txt); $txt = str_replace("Ä","Ae",$txt); $txt = str_replace("ä","ae",$txt); $txt = str_replace("Ü","Ue",$txt); $txt = str_replace("ü","ue",$txt); $txt = str_replace("Ö","Oe",$txt); ................ this is a problem? |
13.09.2010, 15:01 - myfarynet.eu - Forumrang: GT Süchtig - 252 Posts
is the Databaseencoding already utf8? or latin? |
13.09.2010, 15:09 - chfs - Forumrang: Plappermaul - 9 Posts
Blue23 wrote: is the Databaseencoding already utf8? or latin? UTF-8 |
13.09.2010, 15:35 - myfarynet.eu - Forumrang: GT Süchtig - 252 Posts
This function is shit. What dou you can make is $txt = str_replace("ž", "ž", $txt); And that add it into the function. And try it. |
13.09.2010, 16:33 - chfs - Forumrang: Plappermaul - 9 Posts
Blue23 wrote: This function is shit. What dou you can make is $txt = str_replace("ž", "ž", $txt); And that add it into the function. And try it. does not work (( please edit me bbcode.php |