- Forums
- General Errors
- Fix Wrong Charset Cannot Convert Illegal Character Encoding Recode Request
This Page Contains information about Fix Wrong Charset Cannot Convert Illegal Character Encoding Recode Request By bigger_travis in category General Errors with 0 Replies. [2580], Last Updated: Sat May 18, 2024
bigger_travis
Mon Nov 06, 2006
0 Comments
1607 Visits
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.
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');