|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
lukecui Smarty n00b
Joined: 06 Jan 2014 Posts: 2
|
Posted: Mon Jan 06, 2014 2:43 pm Post subject: configuration file in chinese |
|
|
hello, i try to use configuration file to switch language for my web, the idea is: i made two configuration files for the same page, one in english and one in chinese, the configuration file in english working well, but the chinese version had problem, the variables displayed as some strage characters when i save the configuration in ANSI, if i save it in Unicode or UTF-8, then i got some error message like "Fatal error: Uncaught --> Smarty Compiler: Syntax error in config file 'libs\configs\login_ch.conf' on line 1 '’žu <-- thrown in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\QKD\libs\sysplugins\smarty_internal_config_file_compiler.php on line 139 "
any suggestions? thank in advance! |
|
Back to top |
|
lukecui Smarty n00b
Joined: 06 Jan 2014 Posts: 2
|
Posted: Mon Jan 06, 2014 2:51 pm Post subject: Re: configuration file in chinese |
|
|
lukecui wrote: | hello, i try to use configuration file to switch language for my web, the idea is: i made two configuration files for the same page, one in english and one in chinese, the configuration file in english working well, but the chinese version had problem, the variables displayed as some strage characters when i save the configuration in ANSI, if i save it in Unicode or UTF-8, then i got some error message like "Fatal error: Uncaught --> Smarty Compiler: Syntax error in config file 'libs\configs\login_ch.conf' on line 1 '’žu <-- thrown in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\QKD\libs\sysplugins\smarty_internal_config_file_compiler.php on line 139 "
any suggestions? thank in advance! |
found solution: use Notepad++, choose Encoding->Encode in UTF-8 without BOM, then it's working. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|