开发者

SQLite3, UTF-8, Objective-C

开发者 https://www.devze.com 2023-01-23 10:33 出处:网络
I\'ve created an SQLite3 databas开发者_开发百科e in a Cocoa Objective-C project. The data comprises strings of Japanese characters so I need the database to be saved in UTF-8 format.

I've created an SQLite3 databas开发者_开发百科e in a Cocoa Objective-C project. The data comprises strings of Japanese characters so I need the database to be saved in UTF-8 format.

How do I tell SQLite3 to adopt the UTF-8 encoding? Or is SQLite3 intelligent enough to set this once it has received a UTF-8 encoded string?


Look at the section on "Support for UTF-8 and UTF-16" in:

http://www.sqlite.org/version3.html

It looks like the default behavior is what you want.

0

精彩评论

暂无评论...
验证码 换一张
取 消