I am trying to insert a stylized apostrophe (’) into a table in DB2 LUW 9.7. Every method I have tried has resulted in it being a square () when selected back.
The methods I have tried to insert it:
- Modifying and committing a row in Control Center (GUI)
- Updating a row via SQL command in Command Editor
- Loading from a file (both UTF-8 encoded and ANSI encoded) through IBM Data Studio 2.2
Is there a way to get this character into the database? If not, is there a list of characters that simply cannot be used?
What is the encoding of your database/tablespace? I suspect it needs to be set to UTF-8. You may need to create a new tablespace or recreate the database with the encoding explicitly set to UTF-8.
To determine the encoding, run the following command and look for the “Code set” information: