Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 535
  • Last Modified:

encoding in french browser

I use utf-8 in meta for encoding

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; utf-8">

I tried mysql in utf8_unicode_ci and utf8_general_ci but both replace é, è, à with
ý when browser default language is set to french but display them correctly if browser default language is english.

Any idea?
0
mammouth
Asked:
mammouth
  • 2
1 Solution
 
LordOfPortsCommented:
Try specifying the content language explicitly by adding the META tag below to see if it makes a difference.
<META HTTP-EQUIV="Content-Language" Content="en">

Open in new window

0
 
mammouthAuthor Commented:
already set to
<META HTTP-EQUIV="Content-Language" Content="fr">
and return bad sqare character.
0
 
LordOfPortsCommented:
I meant trying to use "en" instead of "fr" in the META tag to see if it makes a difference. The problem might be the original encoding used when the characters were inserted into the database, perhaps it was Latin1. Do you know what the original encoding when the characters were inserted?

After connecting try to issue the following command to see if it makes a difference:

mysql_query ('SET NAMES UTF8');

If it does not work try to identify the original character encoding the database was set to when the characters were inserted, once we know it we can try using the iconv http://us2.php.net/iconv function in PHP to do explicit character set conversion.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now