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
News Module - Problem with charset
Re: News Module - Problem with charset
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.
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.
Re: News Module - Problem with charset
$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.