outdoor Posted April 27, 2005 Share Posted April 27, 2005 Hello Forum Are there some users which use utf-8 for showing special characters with this contrib? In my examples the german umlauts will be displayed incorrectly , if I change the browser settings to utf-8. With ISO-latin 8859-1 all works fine. Also within the normally categories-box, the entries will be showed correctlely: Example : http://demo.handshake.ch/shop/ I use mysql 3.23.54, PHP 4.09 on Solaris 8 / X86 Somebody have an Idea, how I can fix this? I think I'm going mad :-( Greetings Outdoor Quote Link to comment Share on other sites More sharing options...
outdoor Posted April 28, 2005 Author Share Posted April 28, 2005 Hello Forum Are there some users which use utf-8 for showing special characters with this contrib? In my examples the german umlauts will be displayed incorrectly , if I change the browser settings to utf-8. With ISO-latin 8859-1 all works fine. Also within the normally categories-box, the entries will be showed correctlely: Example : http://demo.handshake.ch/shop/ I use mysql 3.23.54, PHP 4.09 on Solaris 8 / X86 Somebody have an Idea, how I can fix this? I think I'm going mad :-( Greetings Outdoor <{POST_SNAPBACK}> O.K. - I could fix it. in select_rs.php go to the bottom and insert the following line: mysql_close($link); //Add REGEX for utf-8 conversion $s= preg_replace ('/([\x80-\xff])/se', "pack (\"C*\", (ord ($1) >> 6) | 0xc0, (ord ($1) & 0x3f) | 0x80)", $s); return $s; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.