On Saturday 19 September 2009,
yufeng230@... wrote:
> hi:
> in the application init()
> { ....
> reg().setAsciiMode(true);
> reg().parseFile("DSqlite.ini",true);
> ...
> }
> DSqlite.ini save as utf8 format,
> [global]
> language=cn
> [en]
> filetext=&file
> newfiletext="&new\tCtl-N\tnew sqlite"
> openfiletext="&open\tCtl-O\topen sqlite"
> [cn]
> filetext=文件
> newfiletext="新建\tCtl-N\t新建数据库"
> openfiletext="打开\tCtl-O\t打开数据库"
>
> in my program read this file ,No problem, but in application exit ()
> {
> ....
> reg().unparseFile("DSqlite.ini");
> .....
> }
> There is something wrong with DSqlite.ini file,
>
> [en]
> openfiletext="&open\tCtl-O\topen sqlite"
> newfiletext="&new\tCtl-N\tnew sqlite"
> filetext=&file
> [cn]
> openfiletext="\xE6\x89\x93\xE5\xBC\x80\tCtl-O\t\xE6\x89\x93\xE5\xBC\x80\xE6\x95\xB0\xE6\x8D\xAE\xE5\xBA\x93"
> newfiletext="\xE6\x96\xB0\xE5\xBB\xBA\tCtl-N\t\xE6\x96\xB0\xE5\xBB\xBA\xE6\x95\xB0\xE6\x8D\xAE\xE5\xBA\x93"
> filetext="\xE6\x96\x87\xE4\xBB\xB6"
> [global]
> language=cn
>
> how to support utf8 code in the ini file?
Yes, characters outside the ascii range are escaped when written to the settings file;
however, they're unescaped when loaded back, so everything's fine.
Its not impossible to change things to support UTF8 on the FXSettings file in the future,
however.
- Jeroen
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf_______________________________________________
Foxgui-users mailing list
Foxgui-users@...
https://lists.sourceforge.net/lists/listinfo/foxgui-users