Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No wstring overloads #33

Closed
reverofevil opened this issue Oct 21, 2014 · 3 comments
Closed

No wstring overloads #33

reverofevil opened this issue Oct 21, 2014 · 3 comments
Assignees
Labels
Milestone

Comments

@reverofevil
Copy link

What about Unicode support?

@SRombauts
Copy link
Owner

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!

@reverofevil
Copy link
Author

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.

@SRombauts
Copy link
Owner

Ok then, let me know!
Le 22 oct. 2014 22:17, "Polkovnikov Philip" notifications@github.com 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).

@SRombauts SRombauts added this to the Post 1.0 milestone Apr 30, 2015
@SRombauts SRombauts mentioned this issue Jan 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants