[MDEV-12577] Inserting UTF8 Chinese characters produce ??? question marks Created: 2017-04-24 Updated: 2017-11-05 Resolved: 2017-11-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Character Sets |
| Affects Version/s: | 10.2.5 |
| Fix Version/s: | 10.2.8 |
| Type: | Bug | Priority: | Major |
| Reporter: | FLAESCH Sebastien | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux Debian 8.6 |
||
| Description |
|
When using UTF-8 encoding in the client and server/database, seems that Chinese characters are inserted as ? question marks, even if the database was created with UTF8 encoding. |
| Comments |
| Comment by FLAESCH Sebastien [ 2017-04-24 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Here is the server log (produced by our C program (in fact it calls a child program this is why you see connection ids 8 and 9!)):
When connecting with mysql client to see what the table contains, we see latin1 characters are properly inserted by others are converted to ?:
We wonder because with the same code, Oracle MySQL works as expected. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by FLAESCH Sebastien [ 2017-05-23 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Maybe the problem came from that fact that the .my.cnf file was not read ( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by FLAESCH Sebastien [ 2017-09-26 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Verified with 10.2.8, UTF-8 client setting works so this issue can be marked as invalid. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2017-11-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Closing according to the comments above. |