Fix Wrong charset cannot convert Illegal character encoding recode request

RegisterLogin
Fix Wrong charset cannot convert Illegal character encoding recode request
Post Description: Fix Wrong charset cannot convert Illegal character encoding recode request
Tags: Fix, Wrong, charset, cannot, convert, Illegal, character, encoding, recode, request
This Post Was Posted On Feb 29, 2008 By bigger_travis #1103
Where I should see dates I see "Wrong charset, cannot convert" or "Illegal character encoding" or "Illegal recode request".. what is wrong?

if you have the questiong above for your gallery, maybe i can answer for you:
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:


     Code:
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.

An invalid locales config normally causes uploads to fail, with the Upload Applet error message Upload error: Upload failed: ". after each uploaded item and the From Web Browser just uploads one item with the status message Successfully added 1 file.

If you are running a multi site Gallery, it might be a good idea to use an absolute path in the require_once call, like this:


     Code:
require_once('/var/www/gallery2/modules/core/classes/GalleryCapabilities.class');
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
©2011 Webune Forums - Mon Dec 19, 2011 12:24 pm
Powered by: Webune Forums V3