Problem with accents

[email protected]
Newsgroups gmane.comp.web.mnogosearch.general
Message-ID <OFAFB3676E.73256985-ONC12578BD.0057FF6D-C12578BD.005950D5@iht.com>
Hello,

the php script I am currently working on contains the following code

while ( $bdict_row = mysql_fetch_assoc($bdict_result_id) ) 
{
        $the_word = $bdict_row['word'];
        $href = "<a href=\"/mnogosearch/search.cgi?q="
                . rawurlencode($the_word)
                . "\" target=\"_blank\">"
                . $the_word . "</a>";

        ....

        echo "<td\">$href</td></tr>\n<tr>";

        ...


This code displays all words in the mnogosearch bdict table, as 
hyperlinks, on a web page.

Whenever a hyperlinked word contains accented characters (eg, 
"bérangère"), the data which are passed to the search.cgi are invalid.

For instance, let's say I click the "bérangère" hyperlink. As a result, 
the input field in the search.cgi form will contain the following value:

 bérangère

which is wrong. The value should be "bérangère".

Thanks in advance for your help.

Philippe


PS I use the utf-8 charset in my database and on my webpage.




P In order to preserve the environment, please do not print this message 
unless it is necessary.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.