Comments (3)
Hi,
The problem is that sqlite3 only have UTF16 support (and only for some APIs) while std::wstring are UTF32 under Linux, so not really portable...
Though adding UTF16 support for Windows is really straightforward if you need it.
Cheers!
from sqlitecpp.
If I remember correctly, UTFnn differ only on the encoding of code points in the different quantity of different (1/2/4 bytes) code units. So the conversion should be possible with some codecvt
magic. Though query preparation etc. do not support Unicode at all, the best we can do is to keep them string
.
Probably I could even make a pull request when I get some time as it doesn't seem too scary right now.
from sqlitecpp.
Ok then, let me know!
Le 22 oct. 2014 22:17, "Polkovnikov Philip" [email protected] a
Γ©crit :
If I remember correctly, UTFnn differ only on the encoding of code points
in the different quantity of different (1/2/4 bytes) code units. So the
conversion should be possible with some codecvt magic
http://stackoverflow.com/questions/7232710/convert-between-string-u16string-u32string.
Though query preparation etc. do not support Unicode at all, so the best we
can do is to keep them string.Probably I could even make a pull request when I get some time as it
doesn't seem too scary right now.β
Reply to this email directly or view it on GitHub
#33 (comment).
from sqlitecpp.
Related Issues (20)
- Binding BLOB requires narrowing conversion HOT 5
- unresolved external symbol error HOT 13
- Multi-threads SQLite table operations / synchronization / transactions HOT 7
- query.bind ???
- getFilename() -Error HOT 9
- Problem with link SqliteCpp with my lib HOT 2
- First time build fails on Windows with MSVC due to carriage return characters HOT 2
- Private members to Protected to enable inheritance
- loop inert and delete, the Active(file) of memory will Abnormal increase
- MinGW cannot find library HOT 2
- Build Error HOT 2
- MSVC: Unresolved symbol SQLite::assertion_failed for example1
- On ORIN: Example1 run error.
- cannot bind to long long (64 bit signed integer)? HOT 4
- it can be shared library? HOT 2
- Issue regarding the overloading of SQLite::Statement::bind
- If the provided filename contains directories or path segments, the database will not be created. HOT 1
- can we add bindBlob(int, const std::string &)? HOT 1
- Is math function possible? HOT 1
- Adding std::optional to bind
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlitecpp.