[MDEV-8157] emoji is not saving in utf8mb4_myanmar_ci Created: 2015-05-13 Updated: 2015-05-18 Resolved: 2015-05-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Character Sets |
| Affects Version/s: | 10.0.19 |
| Fix Version/s: | 10.0.20 |
| Type: | Bug | Priority: | Major |
| Reporter: | Htain Lin Shwe | Assignee: | Alexander Barkov |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Mac OS X 10.10 |
||
| Attachments: |
|
| Description |
|
I am using utf8mb4_myanmar_ci in table. It's working fine for Myanmar Unicode and can sort the correct order. However, it can store emoji text. mysql query is like INSERT INTO `myanmar`.`sort` (`id`, `my`) VALUES (NULL, 'ပြုံးမောင်မောင် ��'); But it only store ပြုံးမောင်မောင် and not include emoji icon. SHOW TABLE STATUS is showing like that |
| Comments |
| Comment by Elena Stepanova [ 2015-05-18 ] | ||||||
|
I installed Myanmar font on my Wheezy from fonts-sil-padauk, and it displays the text, but not emoji, so maybe it's not just MariaDB charset/collation problem (if it's a problem at all). bar, Do you know anything about it? | ||||||
| Comment by Alexander Barkov [ 2015-05-18 ] | ||||||
|
Mr Htain Lin Shwe, Can you please try this:
| ||||||
| Comment by Alexander Barkov [ 2015-05-18 ] | ||||||
|
Elena, To check if you have emoji font, please run gnome-character-map, press Ctrl-F and search for 1F600. I have emoji on my Fedora 21 box out of the box. Sorry, don't know how to install it on Debian. | ||||||
| Comment by Htain Lin Shwe [ 2015-05-18 ] | ||||||
|
Mr Alexander Barkov ,
Is showing ပြုံးမောင်မောင် ? When I run hex
it's showing
| ||||||
| Comment by Alexander Barkov [ 2015-05-18 ] | ||||||
|
Can you please also send output for:
| ||||||
| Comment by Htain Lin Shwe [ 2015-05-18 ] | ||||||
|
It's showing F09F9880 | ||||||
| Comment by Alexander Barkov [ 2015-05-18 ] | ||||||
|
What is the output from:
Also, are you getting any warnings after the INSERT query? | ||||||
| Comment by Htain Lin Shwe [ 2015-05-18 ] | ||||||
|
SET NAMES utf8mb4; It's showing F09F9880 But when I run SELECT * FROM sort; It's showing ? SHOW CREATRE TABLE sort; It's showing CREATE TABLE `sort` ( | ||||||
| Comment by Alexander Barkov [ 2015-05-18 ] | ||||||
|
IF this query:
distplays:
then it means the data has been written into the table correctly. | ||||||
| Comment by Alexander Barkov [ 2015-05-18 ] | ||||||
|
Can you please try to run this:
What does it display? | ||||||
| Comment by Htain Lin Shwe [ 2015-05-18 ] | ||||||
|
Yes, it's showing F09F9880 . Data has been writing. Let me try on other collection. | ||||||
| Comment by Htain Lin Shwe [ 2015-05-18 ] | ||||||
|
Oh! it's working fine. I clear all the data and start again. It's working fine. CREATE TABLE `sample` ( SET NAMES utf8mb4; It's showing correct data. I found a problem , it's a problem of php_myadmin and Sequel Pro. It's working fine terminal. Sorry for wrong report. | ||||||
| Comment by Alexander Barkov [ 2015-05-18 ] | ||||||
|
Perhaps php_myadmin and Sequel Pro have some character set options so this can be properly configured. |