Hi all
Server Info
Apache 2.0.54
MYSQL 4.1.11
PHP 4.3.10-16
Linux Debian-4sarge
Working remotely using Windows XP, Locally using similar spec but with Windows XP
My problem is this. I am in the process of upgrading a website which uses a database, I am creating a customized database using information provided from an external database. On this database there are records which contain information in regards to destinations around the world for example:
Country=Foo,Region=Foo etc...
The information taken from the database will be used to form web links as well as been used within the copy of the web page for example:
however this is extremely unsightly and not very good for web spiders indexing my site so using voodoo the link would become:
These links work fine with standard English characters however web browsers don't like foreign characters been put into the address(and most people don't know how to!) so any foreign character is a definite no, no.
Here lies the problem, the database I get from an external source does not provide full standard English equivelant tables/fields. Is there an easy way to create a new table that converts any foreign character into an English equivelant. Languages are English, French, German,Italian,Dutch.
I could code using an array of foreign characters to test and replace each foreign character in a string but this would mean me knowing every foreign character and also how could I convert it back for the database search (how would it know which letters were foreign and which language?)
It seems the easiest and less troublesome way(in the long run) would be to create new tables with Standard English spellings.
Can anybody shed some light on this for me?
All help is welcome and greatly appreciated.
Regards
mick
<a href="<a href="<a href="<a href="
Server Info
Apache 2.0.54
MYSQL 4.1.11
PHP 4.3.10-16
Linux Debian-4sarge
Working remotely using Windows XP, Locally using similar spec but with Windows XP
My problem is this. I am in the process of upgrading a website which uses a database, I am creating a customized database using information provided from an external database. On this database there are records which contain information in regards to destinations around the world for example:
Country=Foo,Region=Foo etc...
The information taken from the database will be used to form web links as well as been used within the copy of the web page for example:
however this is extremely unsightly and not very good for web spiders indexing my site so using voodoo the link would become:
These links work fine with standard English characters however web browsers don't like foreign characters been put into the address(and most people don't know how to!) so any foreign character is a definite no, no.
Here lies the problem, the database I get from an external source does not provide full standard English equivelant tables/fields. Is there an easy way to create a new table that converts any foreign character into an English equivelant. Languages are English, French, German,Italian,Dutch.
I could code using an array of foreign characters to test and replace each foreign character in a string but this would mean me knowing every foreign character and also how could I convert it back for the database search (how would it know which letters were foreign and which language?)
It seems the easiest and less troublesome way(in the long run) would be to create new tables with Standard English spellings.
Can anybody shed some light on this for me?
All help is welcome and greatly appreciated.
Regards
mick
<a href="<a href="<a href="<a href="