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

sqlite3_bind_text function does not support utf8 #3

Open
EfraSalazar opened this issue Jul 5, 2023 · 1 comment
Open

sqlite3_bind_text function does not support utf8 #3

EfraSalazar opened this issue Jul 5, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@EfraSalazar
Copy link

sqlite3_bind_text function does not support utf8
What is the solution? Utf8 does not respect me, when it is assumed that sqlite3_bind_text function already has utf8 by default.

funcion sqlite3_bind_text no soporta utf8
image

Here is how you write it to the database.
image

@interkosmos interkosmos added the enhancement New feature or request label Jul 6, 2023
@interkosmos
Copy link
Owner

interkosmos commented Jul 6, 2023

The interface to the SQLite function sqlite3_bind_text() expects 8-bit character strings (i.e., ASCII only). Additionally, sqlite3_bind_text16() (UTF-16) and sqlite3_bind_text64() (UTF-8) are provided, but the necessary interfaces are not included in the Fortran library yet. While modern Fortran in principle offers a UCS-2/UTF-16 character type (as in ISO 10646), not all Fortran compilers support it. Furthermore, I’m not sure if UCS-2 is C interoperable. I’ll think about a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants