RE: [PHP] Latin letter problem!
| From: | Peter Lauri | Date: | Tue, 20 Feb 2007 18:31:44 +0000 |
| Subject: | RE: [PHP] Latin letter problem! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-249109@lists.php.net to get a copy of this message | ||
How are you setting the charset of the web page? Are you using header() or
using html head section to set it?
Best regards,
Peter Lauri
www.dwsasia.com - company web site
www.lauri.se - personal web site
www.carbonfree.org.uk - become Carbon Free
-----Original Message-----
From: Delta Storm [mailto:delta.storm@hi.t-com.hr]
Sent: Tuesday, February 20, 2007 6:04 PM
To: php-general@lists.php.net
Subject: [PHP] Latin letter problem!
Hi,
I'm building an simple CMS system. I have built almost everything but
one thing buggs me...
I have a MySQL database built for publishing news
(Id,title,newsContent,timestamp).
And I have a php web page that displays that content. The problem is
with the charset, in the database the settings are following:
character set latin2 collation latin2_croatian_ci;
and in the tables character set utf8;
I display the data in the php page using utf8 I see all the non-PHP
content pure HTML content capable of seeing croatian letter čćžšđ, but
in the news section I only see čćđ. But they are on the same page!
I tried putting other HTML charsets like iso-8859-1,iso-8859-2 etc...
But in all the scenarios I get the HTMl part working but PHP not working
vice-versa...
Please help me it is a very important web page if you need any other
information just ask!
Thank you very much in advance!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php