Re: AW: Problem with accents
| Newsgroups | gmane.comp.web.mnogosearch.general |
|---|---|
| Message-ID | <OFAB373915.F1B2838C-ONC12578BE.00282A29-C12578BE.002892A0@iht.com> |
Hi,
I use UTF-8 in both my page
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
and my database
mysql_query("SET NAMES 'utf8'");
My server serves iso-8859-1 characters by default.
Philippe
"Witte Marco" <[email protected]>
29/06/2011 07:14
To
<[email protected]>
cc
Subject
AW: Problem with accents
Hi,
did you try to switch codepage within your Browser to UTF-8 / different
settings?
In Firefox there are multiple options.
In my case i had an iso-8859-1 statement within on headerfiles.
Is your http server serving utf-8 codepage per default?
Regards
Max
Von: [email protected] [mailto:[email protected]]
Gesendet: Dienstag, 28. Juni 2011 18:16
An: [email protected]
Betreff: Problem with accents
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.
P In order to preserve the environment, please do not print this message
unless it is necessary.