[SOLVED] Warning: mb_convert_encoding()

chweifly

Joined: 2005-07-25
Posts: 3
Posted: Mon, 2005-07-25 11:58

After I install G2 b4, there is something wrong:

Quote:
Warning: mb_convert_encoding(): Illegal character encoding specified in C:\localhost\gallery2\modules\core\classes\GalleryPhpVm.class on line 70

----

Gallery URL (optional):
Gallery version:gallery-2.0-beta-4
Webserver (with version):Apache 2.0.53
Datatabase (with version):MySQL 4.1.11
PHP version (eg 4.2.1):PHP 4.3.11
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system:WinXP sp2
Web browser/version: MS IE 6.0 xpsp2
G1 version (for migration bugs):

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-07-25 12:16
 
chweifly

Joined: 2005-07-25
Posts: 3
Posted: Mon, 2005-07-25 13:43

I have placed the following in config.php:

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

However, I got another wrong:

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

Warning: Cannot modify header information - headers already sent by (output started at C:\localhost\gallery2\config.php:150) in C:\localhost\gallery2\index.php on line 39

 
chweifly

Joined: 2005-07-25
Posts: 3
Posted: Mon, 2005-07-25 13:49

O, I foud what's wrong with me. Now, G2 run perfectly!

I need place following code befor ?>

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

 
osmand

Joined: 2006-09-15
Posts: 1
Posted: Fri, 2006-09-15 07:04

This works fine.

Thanx