Character Set (for language-viewing problem) - SP1 1.0 This version is for YaBB 1 Gold - SP1. Cannot view YaBB in other language than English? You may found the same problem with me, try my mod :-) When I upgrade my YaBB board from 'YaBB 1 Gold - Release' to 'YaBB 1 Gold - Service Pack 1' I found that this new version is not support my language, Thai, as it always view in English encoding and I must change the language encoding to Thai for every page manually. The problem is on both IE and Netscape. At first I think the problem can be solved with the tag, but I was all wrong. To solve the problem, you must set the 'charset' in HTTP header with the character set you prefered. Example, for my language, Thai, I set it to TIS-620. I got this solution from friendly boardadmin of the board I often visit, Giga Dragon of www.smnforum.com, thanks to him :-) NOTE: - You can set the character-set through the 'Forum Preferences and Settings' section of the Admin Center. - This setting is OPTIONAL. Leave blank for this setting does not harm your board, it acts as this mod is not installed :-) ------------------------------------------------------------ To Install: Copy all edited files to your /Sources directory. Edited files: template.html Sources/AdminEdit.pl Sources/Subs.pl Jakkrit Vongsraluang (PaePae) mailto:paepae2@yahoo.com template.html <yabb title> <yabb title> Sources/AdminEdit.pl
$txt{'348'}
Character Set (for HTTP header)
(can leave blank if not using)
Ex. ISO-8859-1, TIS-620, etc.
$language = $FORM{'language'} || 'english.lng'; $character_set = $FORM{'character_set'}; \$language = "$language"; # Change to language pack you wish to use \$character_set = "$character_set"; Sources/Subs.pl if($yySetCookies1 || $yySetCookies2) { print header(-cookie=>[$yySetCookies1, $yySetCookies2]); } else { print header(-status=>'200 OK'); } if ($character_set) { if($yySetCookies1 || $yySetCookies2) { print header(-cookie=>[$yySetCookies1, $yySetCookies2], -charset=>"$character_set"); } else { print header(-status=>'200 OK', -charset=>"$character_set"); } } else { if($yySetCookies1 || $yySetCookies2) { print header(-cookie=>[$yySetCookies1, $yySetCookies2]); } else { print header(-status=>'200 OK'); } }