0

I opened up a Northwind database (northwind.sqlite3) using DB Browser for SQLite (Version 3.9.1).

img1

For some product names, I couldn't get the right names displayed no matter what I did, including:

  • I changed new line characters options
  • I changed Preferences options
  • I checked the outputted csv using Excel and Notepad with different encoding

img2

img3

img4

Still couldn't figure out how to properly show the characters...Any help is appreciated.

3
  • What is the output of SELECT hex(ProductName) FROM Products WHERE ProductID = 23? Commented Jun 26, 2017 at 14:50
  • @CL. It's 54756E6E6272F664. Thanks Commented Jun 26, 2017 at 15:03
  • 1
    F6 is the CP1252 encoding of ö. Commented Jun 26, 2017 at 16:06

1 Answer 1

1

The problem may be either that data have been added to the database in an incompatible encoding (e.g., pasting data from Microsoft products into a UTF-8 database can do this) or that the DB Browser isn't displaying the data in the correct encoding. To fix the former problem you may have to edit the data, or possibly change the database encoding. You can't change the encoding of a SQLite database on the fly, so you would have to export the data and import them into a new database with the encoding that is actually used. If it's just a DB Browser display issue, right-click on the table header and choose the option to change the display encoding.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks for the response @rd_nielsen! I'm trying to change the encoding by right clicking on the header ProductName. Do you have any suggestions for the encoding I should use?
cp1252 at a guess, especially if you're on Windows or the data came from Windows.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.