Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

configuration file in chinese

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
lukecui
Smarty n00b


Joined: 06 Jan 2014
Posts: 2

PostPosted: Mon Jan 06, 2014 2:43 pm    Post subject: configuration file in chinese Reply with quote

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
View user's profile Send private message
lukecui
Smarty n00b


Joined: 06 Jan 2014
Posts: 2

PostPosted: Mon Jan 06, 2014 2:51 pm    Post subject: Re: configuration file in chinese Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP