Skip to content

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)
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