Jump to content

Encoding problems (UTF-8)


sanjeevk

Recommended Posts

Hi anyone can help me.

I have a site which needs to be run in both English and French.

I have problem with the encoding (Stress problem).

When i include the metatag:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

, it works fine in most of the cases but not in all the cases .

In my older database and in some other cases it doesnt work.

i need my site to support both

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

and

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

I have no idea what to do .

Please Help me out with this problem. Please Please.

Link to comment
Share on other sites

n~ link=topic=165950.msg730160#msg730160 date=1193914538]

It should work with

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

 

Is your database also

 

MySQL charset:  UTF-8 Unicode (utf8)

 

 

Yes my database is also UTF-8 Unicode (utf8) . But what i have problem is for the admin part

i need the system to support

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

but in some cases i have database which supports utf-8.

for example , i have included é for é character.

The problem is all the database datas are not in é for é character.

In dome cases just a copy  é character is used.

Link to comment
Share on other sites

I would convert everything to UTF-8.

 

Perhaps you can run the data through htmlentities?

 

Thanks, i have converted all the datas to UTF-8 now .

Working fine with the database and static problems but now what i have problems is with the meta tags and javascript.

The meta tags are not showing the French characters and also the javascripts alerts are not showing the french languages .

I had change all meta tags and javascripts variable to UTF-8 format.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.