News Module - Problem with charset

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
phi721
New Member
New Member
Posts: 3
Joined: Tue Sep 23, 2008 5:36 pm

News Module - Problem with charset

Post by phi721 »

Hi,

I use  charset utf8 for my website http://www.kocherstrasse3.ch. After some upgradings from 1.4.x I face the problem that News module use the charset latin (ISO-8859-1), what cause some problems with special characters like for "März" (March).

The w3.validator confirms that utf8 is not used predominantly. Error: Sorry! This document can not be checked.

I would glad if you could help me to fix the problem.


I'm using News 2.9.3 and runnning my CMS Made Simple 1.5.3. I'm using PHP  5.2.6  and MySQL 5.0.54. This is all working with Apache Apache/2.0.52 (CentOS)  running on Linux.

Kind regards

Philipp Rodriguez
phi721
New Member
New Member
Posts: 3
Joined: Tue Sep 23, 2008 5:36 pm

Re: News Module - Problem with charset

Post by phi721 »

Well no reply

I suppose that it a problem with the php funktion strftime() which does send the wrong charset.

My work-around is:
- replace strftime month name by numbers
- set $config['locale'] = 'utf-8'  in the config.php, then also the RFC Date is correct in the rss feed.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: News Module - Problem with charset

Post by Ted »

$config['locale'] actually calls the http://us.php.net/manual/en/function.setlocale.php function, so I don't think utf-8 actually does anything.  However, depending on your system setup, 'de.UTF-8' might actually fix your strftime issue.  Locales are based on the server configuration and not on PHP, so your mileage may vary.
Post Reply

Return to “CMSMS Core”