Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: Chronus - helmikuu 07, 2009, 11:33:18 AP

Otsikko: Unknown character set: 'ISO' problem after upgrading
Kirjoitti: Chronus - helmikuu 07, 2009, 11:33:18 AP
Hello,

I upgraded from 1.1.8 to 2.0 RC1. the upgrade went fine with no errors. when I try to load my forum I get this error:

Unknown character set: 'ISO'

Any thoughts? Thanks in advance
Otsikko: Re: Unknown character set: 'ISO' problem after upgrading
Kirjoitti: Chronus - helmikuu 09, 2009, 09:56:06 AP
*bump*
Otsikko: Re: Unknown character set: 'ISO' problem after upgrading
Kirjoitti: Chronus - helmikuu 13, 2009, 04:33:30 AP
*bump*
Otsikko: Re: Unknown character set: 'ISO' problem after upgrading
Kirjoitti: Tyrsson - helmikuu 13, 2009, 04:52:03 AP
What encoding do you use for the forum? default or utf-8?

This is not my strong suite but the answer could help one of the specialist in this area.
Otsikko: Re: Unknown character set: 'ISO' problem after upgrading
Kirjoitti: Brettflan - helmikuu 13, 2009, 07:41:59 AP
It sounds to me like your language files might be corrupted or something. Several character sets start with "ISO", but are longer than that. The standard basic English character set for example is ISO-8859-1.
It might be helpful to check the /Themes/default/languages/ folder on your site and check the "index.<language>.php" file, where "<language>" is your forum's default language. Normally this would be "index.english.php". If you were using UTF8 (which it sounds like you're not), the "<language>" part would have "-utf8" on the end, like "index.english-utf8.php".

Near the top of the file should be a line which reads similar to this which specifies the character set to use:
$txt['lang_character_set'] = 'ISO-8859-1';
Otsikko: Re: Unknown character set: 'ISO' problem after upgrading
Kirjoitti: Chronus - helmikuu 18, 2009, 05:55:55 AP
Actually I use latin1 instedad of UTF-8. Could that be a problem? Would converting database to UTF-8 in admin panel before upgrading help?
Otsikko: Re: Unknown character set: 'ISO' problem after upgrading
Kirjoitti: Chronus - helmikuu 23, 2009, 05:52:22 AP
SOLVED: Upgraded lang files before updating forum version
Otsikko: Re: Unknown character set: 'ISO' problem after upgrading
Kirjoitti: Tyrsson - helmikuu 23, 2009, 09:35:15 AP
Awesome :)

Glad you got it sorted out.
Otsikko: Re: Unknown character set: 'ISO' problem after upgrading
Kirjoitti: Chronus - helmikuu 23, 2009, 12:00:34 IP
mee to. It was making me crazy. Now if someone else encounters a problem hopefully will find here an answer.