Monday, May 5, 2014

utf8 garbled how normal display


I have a database db file, the data table has a field is kept garbled.
Now been measured before, this field is utf8 encoded.
I took this field from the database, how it is displayed as normal characters?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Database already exists, and now want to use this database file. Internet is a lot, did not find specific solutions, find great God Weapon!
Reply:
Access to data is garbled by UTF8 encoding it?
Reply:
Can not be resolved, Bengxiang unless there sqlite inside, otherwise you have to send json
Reply:
reference to the second floor jack_wolf_ reply:
by UTF8 encoded data is garbled to get it?

Ah using new String (paramString.getBytes (), "utf-8") This method is garbled, and get stored in the database is the same
Reply:
reference to the third floor heaimnmn reply:
not resolved, will not catch up, unless there is a sqlite inside, otherwise you have to send json

. . .
Reply:
Determine the database encoding is UTF8? If so, whether it may be time to write the ASCII code to write data? Treat it as ASCII code data taken out look.

The best way is to talk to write data to confirm what is written specifically coded data.
Reply:
Database encoding is UTF8, however, encoding the data stored inside, is not necessarily UTF8,,, there are some confused people will scrawl, but as he read his own way out of the normal.
Reply:
Positive solutions ...

reference to the 6th floor hslinux reply:
determine the database encoding is UTF8 and if so, whether it might be time to write the ASCII code to write data?? Treat it as ASCII code data taken out look.

The best way is to talk to write data to confirm what is written specifically coded data.

Reply:
reference to the 6th floor hslinux reply:
determine the database encoding is UTF8 and if so, whether it might be time to write the ASCII code to write data?? Treat it as ASCII code data taken out look.

The best way is to talk to write data to confirm what is written specifically coded data.


I try
Reply:
I suspect that the field is made up encryption algorithms. . . I do not know the rules can not be restored. .
The database is looking for online. . .
Reply:
reference to the third floor heaimnmn reply:
not resolved, will not catch up, unless there is a sqlite inside, otherwise you have to send json

How to get existence sqlite inside?

No comments:

Post a Comment