Code page / charset

Use GitHub to post feature requests for phpwcms.
Locked
pk2000
Posts: 63
Joined: Mon 17. May 2004, 22:43
Location: Tallinn, Estonia
Contact:

Code page / charset

Post by pk2000 »

A problem that I ran into making a triple language site (Estonian, English, Russian): The code page/charset selection should be in the template. Currently it is possible to set code page in conf.inc.php but this does not allow to use different code pages. This is a problem when trying to make multi-language sites (Russian for example).

This stems the next question. Will phpwcms have a multi-language support? The current hack with structure levels is not a really good solution. It’s a hack.

I have seen posts requesting that the multi-language support should be synchronous (the article or structure level that's in one language is also in other languages). My take on this is that the languages should be asynchronous (languages can have different structure and articles).

On the cheerful note - thanks Oliver for a really good CMS. I’m very happy with phpwcms and use it for most of my projects.

Priit

PS the hack I used for code pages is that i commented out this charset part from index.php:

Code: Select all

//echo '<meta http-equiv="Content-Type" content="text/html; charset=';
echo /*PHPWCMS_CHARSET."\">\n".*/$block["htmlhead"]."<script src=\"";
and set it for all pages in template html header part.
rudolf
Posts: 1
Joined: Wed 26. Jan 2005, 12:01

What about utf-8?

Post by rudolf »

Why don't you use utf-8 for all languages?
pk2000
Posts: 63
Joined: Mon 17. May 2004, 22:43
Location: Tallinn, Estonia
Contact:

Post by pk2000 »

russian seems to break on many computers when using utf-8
Locked