Problem about lanuage selection

hammerchung

Joined: 2005-01-17
Posts: 8
Posted: Thu, 2005-09-15 03:59

Hi,

I got a error message when i change the global language envirnoment to BIG5(Tra. Chinese),The error message is like that "Warning: mb_convert_encoding(): Illegal character encoding specified in C:\httpd\gallery\modules\core\classes\GalleryPhpVm.class on line 70
". However, it disapears when I change the global language envirnoment to English.

How can I solve this problem. Please help, thanks a lot~~~!

MY Platform:
WINDOWS 2K3 Adv. server SP1 English
Apache 2.0.54
PHP 4.4.0
MYSQL 4.1
G2 RC-2
PHP INFO:
http://hammer.servepics.com/phpinfo.php

Gallery link:
http://hammer.servepics.com/photo/

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-09-15 13:10
 
hammerchung

Joined: 2005-01-17
Posts: 8
Posted: Wed, 2005-09-21 06:42

Thx, however, I had already install G2, how can I solve it after installation?

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Wed, 2005-09-21 06:46

That FAQ link didn't take me to the exact place, but maybe http://codex.gallery2.org/index.php/Gallery2:FAQ#Where_I_should_see_dates_I_see_.22Wrong_charset.2C_cannot_convert.22_or_.22Illegal_character_encoding.22_or_.22Illegal_recode_request.22.._what_is_wrong.3F will work for you? Ugly URL though :)

I didn't see anything at all about installing G2 there... so maybe you could give that solution a try?

Like Gallery? Appreciate my help? Think I'm an asshole? Make your point by donating to the Gallery project! Or maybe just visit my website.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-09-21 08:03

you don't have to reinstall G2 after changing the charset in config.php or adding additional system locales.

 
hammerchung

Joined: 2005-01-17
Posts: 8
Posted: Mon, 2005-09-26 07:48

Thx for reply, however, i search config.php and i can't find relative statement that i can replace. Could you find?

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Mon, 2005-09-26 08:00

Maybe english isn't your first language...

Quote:
Some operating systems report invalid character sets to PHP leading to errors when trying to convert system-generated content (like day/month names in dates) to UTF-8. Work around this problem by placing the following in config.php:

require_once(dirname(__FILE__) . '/modules/core/classes/GalleryCapabilities.class');
GalleryCapabilities::set('systemCharset', 'ISO-8859-1');

Replace 'ISO-8859-1' with the appropriate character set for your system.

Nothing in this statement implies that you will find anything like this in there already. It tells you to add it to that file. See?

Like Gallery? Appreciate my help? Think I'm an asshole? Make your point by donating to the Gallery project! Or maybe just visit my website.

 
hammerchung

Joined: 2005-01-17
Posts: 8
Posted: Tue, 2005-09-27 05:44

I added it la, but nothing can see after i add it.

 
hammerchung

Joined: 2005-01-17
Posts: 8
Posted: Thu, 2005-09-29 03:14

Anyone can help me?

HELP~~~!