You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sqlite3_bind_text function does not support utf8 #3
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.
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.
Activity
interkosmos commentedon 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) andsqlite3_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.