unidac sqlite数据库字符集

xp 、delphi7环境

中文在sqlite里面到底存储的是什么字符集,我想搞明白,就试验了下。

工具:UltraEdit32

涉及unidac控件UniConnection里options的属性,有2个,一个是ASCIIDateBase,一个是UseUnicode。

以“中”字为例,通过Delphi7添加一条记录

当ASCIIDateBase为true,UseUnicode为false时,写入的是ANSI编码


当ASCIIDateBase为true,UseUnicode为True时,写入的是UTF8编码

当ASCIIDateBase为false,UseUnicode为True时,写入的是UTF8编码


当ASCIIDateBase为false,UseUnicode为false时,写入的是UTF8编码




猜你喜欢

转载自blog.csdn.net/qhdyanjie/article/details/38854567