Jump to content

Trying to fix some foreign characters


c_shelswell

Recommended Posts

Hi I seem to have had a small problem with my mysql database a while back (i think when i switched from windows to linux) Anyway it seems to have replaced all my 'é' with 'é' (it also shows as '�')i was trying to do an ereg_replace on them like:

 

        //username input = 'Andr�'

        $username = $row['username'];
$pattern = '/é/';
$replacement = '/é/';
$fixedNames = eregi_replace($pattern, $replacement, $username);

 

This however seems to do absolutely nothing. Does anyone have any ideas how i might go about sorting this problem?

 

Many thanks

Link to comment
https://forums.phpfreaks.com/topic/54276-trying-to-fix-some-foreign-characters/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.