I have stored Spanish text into the SQlite database and I am retrieving the same through the java code using row.getString() method of BlackBerry API, But I am unable to fetch the exact text from the database, only the accent characters are displaying differently in to the device(BlackBerry bold 9700). Where I am doing wrong please point me to the right direction.
Best Regards,
Vinayak
row.getString() does not allow any specification of the encoding – so the OS code should be doing the right thing when retrieving a string from the database. My experience with SQLite on BlackBerry is that OS builds around 5.0.0.4xx have a bug where the database encoding is not respected on retrieval. I’ve had to work around this by doing
But of course, only on the problematic OS versions, as this would break any correct implementation of row.getString().
The versions with this issue that I’ve encountered so far are: 5.0.0.442 and 5.0.0.423