mardi 15 décembre 2015

Default DB encoding returns bad symbols

Database table is created by simple:

public static final String ITEMS_DB_CREATE = "create table "
                + TABLE_ITEMS + "("
                + ITEMS_ID + " integer primary key autoincrement, "
                + ITEMS_NAME + " text, "
                + ITEMS_DESCRIPTION + " text, "
                + ITEMS_TYPE + " text);";

database.execSQL(ITEMS_DB_CREATE);

Table is filled up by some data received from web API calls.

Then information is shown in some places around the app, but some users experience the following:

enter image description here

What could the problem be related to? I've never used any special encoding stuff. According to quite authoritative answer here http://ift.tt/1Yf0X88, DB should be set to UTF by default.

Aucun commentaire:

Enregistrer un commentaire