Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^4: Removing Foreign Characters

by existem (Sexton)
on Jan 27, 2005 at 18:05 UTC ( #425663=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Removing Foreign Characters
in thread Removing Foreign Characters

thanks for the help guys, I think i've kind of hacked this one ;) here's what i've done.

This is actually PHP, I did it on the front end, rather than at the point of loading into the database.

$trans = array( "" => "À", "" => "à", "" => "Á", "" => "á", "" => "Ã", "" => "Ì", "" => "ì", "" => "Í", "" => "í", "" => "Î", "" => "î", "" => "Ò", "" => "ò", "" => "Ó", "" => "ó", "" => "Ô", "" => "ô", "" => "é", "" => "è", "" => "È", "" => "Ù", "" => "ù", "" => "Ú", "" => "ú", "" => "Û", "" => "û", "" => "", "" => "" ); $name = strtr($row["name"], $trans2);

I'm off to the pub now to think about it a bit more ;)


Comment on Re^4: Removing Foreign Characters
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://425663]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2014-12-28 15:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (182 votes), past polls