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
https://forums.phpfreaks.com/topic/75624-encoding-problems-utf-8/
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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.