Dealing with letters that have accents and diacritical marks in assorted languages
My first instinct is to say, “Stick it all in a proper database.” MySQL can take the data and foreign characters, and PHP can manage the translations to and from HTML entities.
But what about the searching? There are ‘soundex’ functions in both PHP and MySQL that will help with finding words that sound similar, but tools such as that tend to be based on English pronunciation. So, if any readers have a solution, I’d love to hear from you. How can you ensure that all the people in Zurich can be found, however the search term is spelt? And how would you deal with spellings as different as Cologne and Köln?
For all articles on web development click on the tag below
Related articles
Q.Why are some of the keys on my keyboard doing strange...
Q.Is my phone’s Bluetooth any use?
Q.Can I switch boot drives so that I can work on older...
Old Street roundabout is being touted by the Government as the UK's answer to Silicon Valley, but it seems our best innovations are coming from all over the UK
|
|
|
|
|
Computeractive Excel (2010) Online tutorialPrice: £19.99 |
Computeractive Word (2010) Online TutorialPrice: £19.99 |
Computeractive Powerpoint (2010) Online TutorialPrice: £19.99 |
Angry BirdsPrice: £9.99 |
Back Issue CD-Rom 14 (2011)Price: £15.99 |