URL issues with Lynx

Solved
reggiolefourbe Posted messages 5 Status Membre -  
reggiolefourbe Posted messages 5 Status Membre -
Hello,
I am currently working on a PHP project to make it more accessible. To do this, I am testing the results in parallel with Firefox and Lynx.
However, I am facing a problem that I cannot resolve with Lynx. Indeed, URLs containing accented characters are being converted incorrectly, and as a result, the software cannot find the corresponding entries while Firefox can.
For example: When I want to view Amélie's publications, the URL used by Firefox will be: www.monsite.com/show.php?author=Am%E9lie
whereas Lynx will use www.monsite.com/show.php?author=Am%C3%A9lie
and will indicate that such an author does not exist. I see that this is an encoding issue with accented characters, but I do not know how to resolve it.
Thank you in advance!
Reggio
Configuration: Linux Fedora Firefox 1.5.0.10

1 réponse

Rodolphe Kant
 
1) You can try programming your search tool to work without accents. For example, you convert your search string to remove accents and convert your database to be used without accents. You only restore accents for display purposes. It's up to you to design the converters (like grep), and you can create accent-free indexes for your database.

2) If Lynx is open source, you can check why it does that. But I doubt you can do much about it. Lynx seems like a very alternative browser.

3) Ask the "Office de la Langue Française" to abolish accents. They've been working on it for a generation, but at the speed they are going, your problem will persist until the year 2798. (joke)
0
reggiolefourbe Posted messages 5 Status Membre
 
Hello,
What I don't understand is what encoding is used to go from %E9 with Firefox to %C3%A9 with Lynx for the character 'é'... There must be some explanation and a solution... The database was not created or managed by me, so I cannot afford to change their convention by removing accents...
Julien
0