eZ Community » Forums » Install & configuration » multi-language (chinese, english,...
expandshrink

multi-language (chinese, english, german) installation with mysql: how?

multi-language (chinese, english, german) installation with mysql: how?

Friday 28 March 2003 6:53:56 am - 11 replies

Hi,

How can I do a multi-language installation with MySQL? Which codepage should I use?

eZ publish 3.0 is unusable with PostgreSQL 7.3.x so I can't go the unicode way. ;-(

Any suggestions?

Kai

Friday 28 March 2003 10:57:52 am

Generally you can't do multi-language installations on MySQL unless the languages use the same characters and are a western language. There's supposed to come a new version with Unicode support but I don't if it's here yet.

Regarding codepages you could have used cp932 for this.

The other problem is that multi-byte charsets are not 100% supported yet, the reason for this is that PHP and all it's string handling functions are built around single-byte characters. For instance regular expressions will fail. This is something that we will continue to improve with future releases.

Friday 28 March 2003 1:21:08 pm

How stable is eZ3 under PostgreSQL? it would appear that this is a better database platform for eZ if you require multiple languages, do you agree?

Friday 28 March 2003 1:47:22 pm

eZ publish 3 is stable on postgrsql 7.2.x but not on 7.3.x.
But there are still some problems with unicode and eZ publish.
We will make support for 7.3.x asap and improve multi-language (unicode ) support.

Sunday 30 March 2003 4:15:53 am

Ok, I will probably wait for postgresql 7.3.x support. Any (rough!) guess when the fix will be released or in svn?

Kai

Tuesday 01 April 2003 9:57:48 am

Hello,

Read This about Internationalization under MySQL...

http://www.mysql.com/doc/en/Nutshell_4.1_features.html

-Fadi

Wednesday 02 April 2003 11:20:41 am

I was reading this Fadi,

Have you used 4.1? i know 4.0 has achieved production status, but is 4.1 in any fit state?

Thursday 10 April 2003 1:22:29 pm

HI Sergey,

can you reveal any more about the current status of utf8 support in ezpublish 3. It is a major issue for us at OneWorld. I presume ezpublish 3 supports postgres 7.2.x OK, surely this would support utf8 with no problem?

Best regards

David Heath

Thursday 10 April 2003 1:25:28 pm

Sorry, have just read back the thread, so I see you have confirmed support for PG 7.2.x.

I would be interested to know exactly what you mean when you say there are "still some problems" with unicode support? Are these show-stoppers, or can they be lived with/worked around?

Thanks

Dave

Thursday 10 April 2003 5:30:27 pm

How well eZ publish will work with Unicode really depends on what parts of eZ publish is used.

The major problem with Unicode (or other multibyte encodings) is that PHP was designed for singlebyte encodings (default is latin1) and thus many of the string handling functions has problems with such strings.
With the mb_string extension compiled in it's possible to get more support for Unicode however there are still lots of string functions with support for it.

Currently some of the datatypes (which uses regular expressions for validation) and the search engine (due to upper/lower case handling) will have problem with Unicode.

We will continue to improve the support for Unicode with the next 3.x releases, for instance the 3.1 release will solve some of the issues with cases and searching.

Thursday 10 April 2003 6:00:40 pm

Hi Jan,

thanks for your response. I understand the issues with PHP support for multibyte character encodings and have been researching them myself.

Re: regexp support for UTF8, there are two areas:

1. ereg

2. preg_match (the PCRE libraries)

For 1, the solution is simple, which is to use mb_ereg, or even enable the mbstring override mode which replaces standard ereg with mb_ereg etc. I would hope that this is being done throught eZ3 code.

For 2, I have made further enquiries. Please see the following post which I made to the php.i18n group:

http://news.php.net/article.php?group=php.i18n&article=530

And the response from Wez Furlong, the PCRE maintainer:

http://news.php.net/article.php?group=php.i18n&article=531

In other words, it sounds like PCRE should support UTF8 fine from php 4.3 onwards.

Are there other specific problems with unicode support which you are aware of?

Obviously case handling is a difficult one as it requires locale awareness which I'm not sure if there is any support for in any libraries (possibly ICU? http://oss.software.ibm.com/icu/).

We are currently investigating the possibility of supporting UTF8 in ez 2.x.

Thanks for your help.

Dave

Friday 11 April 2003 1:01:29 pm

I'll look into the PCRE in PHP 4.3 and the ICU project when I start on the i18n improvements. Case and priority tables will probably solve most of the problems.

The only other problem with Unicode as I see it is the database support (sorting and string operations), using PostgreSQL, Oracle and the latest MySQL version will probably fix this problem.
Also using Unicode will slow down the site, especially without the mb_string extension.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from