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

Fix some tiny issues #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix some tiny issues #18

wants to merge 1 commit into from

Conversation

ume365
Copy link

@ume365 ume365 commented Nov 29, 2019

Replace WWW class with UnityWebRequest class.
Can use multibyte characters(eg. Japanese, Chinese and Hangul)

Can use multibyte characters(eg. Japanese, Chinese and Hangul)
private IntPtr Prepare (string query)
{
IntPtr stmHandle;

if (sqlite3_prepare_v2 (_connection, query, query.Length, out stmHandle, IntPtr.Zero) != SQLITE_OK) {
int byteCnt= System.Text.Encoding.GetEncoding("UTF-8").GetByteCount(query);
Copy link
Author

@ume365 ume365 Nov 29, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use query byte instead of query length for 3rd args of sqlite3_prepare_v2

WWW www = new WWW (sourcePath);
// Wait for download to complete - not pretty at all but easy hack for now
// Android
UnityWebRequest www = new UnityWebRequest();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace WWW class with UnityWebRequest class, because Unity team abolished WWW class.

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

Successfully merging this pull request may close these issues.

1 participant