Forum Moderators: coopster

Message Too Old, No Replies

changing è to è automatically

using php to change letters

         

derek mcgilvray

4:58 pm on Aug 24, 2006 (gmt 0)

10+ Year Member



Hi guys,

I have about 100 pages of English translated into French which need going through to change all the accented letters into the proper format (i.e. changing è to è) so they appear properly on the screen.

All I can find are suggestions to use the find and replace function of a text editor - is there a quicker way? Is there a straightforward piece of code that will do this on every page for every accent?

jatar_k

5:04 pm on Aug 24, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I always used a macro in my text editor for it, even if use an automated method like grep or a script that will use the preg functions and resave you will have to go through and check each manually.

barns101

5:05 pm on Aug 24, 2006 (gmt 0)

10+ Year Member



A search & replace utility would be your best bet, but you'd have to download the files first, change them and re-upload them.

I guess you could write a script to open the directory/directories, use a while loop to open each file and then use str_replace [uk.php.net] and save the files again.