MySQL UTF-8 issue with c caron (hatscheck) from Czech language - mysql

This problems origins from TYPO3, where I can't insert a c caron (č) in RTE while s caron (š) works. But soon I realised, that the problem also occurs, when I directly insert a c caron in phpMyAdmin.
Charset in DB and the table is both UTF8_unicode_ci, I also tried UTF8mb4_unicode_ci with no success.
Error: Warning: #1366 Incorrect string value: '\xC4\x8D \x0D\x0A' for column 'bodytext' at row 1
Thanks in advance!
PS: Similar problem with Ś Warning: #1366 Incorrect string value: '\xC5\x9A' for column 'bodytext' at row 1

Thanks for your comments! I've found the error: Databse was UTF-8, table was UTF-8 but the field was Latin-1... LOL! Changed to UTF-8 and now it works. Thanks for all your help!

Related

Incorrect string value: '\xC3' for column

I can't save some data in my mysql database.
SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\xC3' for column 'title' at row 1
row title use the collation utf8mb4_unicode_ci.
What's wrong with it? How could I save my data?
PS: I try pretty much every solution give in stackoverflow. That why I create a new thread.
C3 may indicate a utf8 character being interpreted as latin1. Or it may indicate "double encoding".
SHOW VARIABLES LIKE 'char%';
See... utf8
The solution is probably to connect with utf8mb4, not with the default.
What version of MySQL are you using? What parameters does Doctrine use when connecting?
Am getting the same error while I try to upload (🗽<- this type [UTF8]). '1366. Incorrect string value: '\xF0\x9F\x98\x80' for column'
But am changing the data type to 'mediumblob' then its working fine.
check out the screenshot. Now the error solved

ERROR 1366: 1366: Incorrect string value

I get an error when trying to insert characters like čćšđž:
ERROR 1366: 1366: Incorrect string value: '\xC4\x87'
I've searched the internet and found out that this error may be caused if I try to insert character which needs more than 3 bytes, but as you can see in this error, my character takes only 2 bytes.
Collation is set to utf8_unicode_ci, mysql version is 5.6.27.
Can someone help with this?
Since \xC4\x87 seems to be the correct UTF-8 representation for U+0107 you are either not telling MySQL what encoding to use when you stablish the connection or you're reporting a wrong one.

Not able to insert Chinese characters in MYSQL 5.5.8 and 5.6 latest one

Value I am trying to inert is - 𪋖𪏖𪓖𪗖𪛖112
If you even copy from here and insert in mysql using myslql workbench or Heidi I am getting following error
0 13:59:43 INSERT INTO test.employee VALUES ('2','𪋖𪏖𪓖𪗖𪛖112') Error Code: 1366. Incorrect string value: '\xF0\xAA\x8B\x96\xF0\xAA...' for column 'Name' at row 1
I have checked that schema , table , column has utf-8 encoding .
Also I tried with utf8mb4 , utf16 and utf32 .
Can you please help me ?
please refer
http://mathiasbynens.be/notes/mysql-utf8mb4
Problem is that these are rare han chinese character and these are four byte per char in UTF 8 than 3 bytes in UTF 8
SO i have to change connection encoding also to utfbmb4 which was my mistake
please change my.ini as mentioned in blog
http://mathiasbynens.be/notes/mysql-utf8mb4

Phpmyadmin - error for symbol °

I seem to have a weird problem with my Phpmyadmin database. When I use the symbol ° in my table subject it gives an error and won't insert, for my table message however this doesn't make a difference.
I tried it as a VARCHAR and as TEXT, but both give errors. The message field is a TEXT and doesn't give any errors.
I found this: http://fogbugz.stackexchange.com/questions/2156/how-do-i-fix-incorrect-string-value-x-errors-when-running-on-mysql
My outputs are: utf8_general_ci, latin1_swedish_ci, latin1_swedish_ci
Error:
DB Error #1366
INSERT INTO table SET created=NOW() ,ticketID=7403, subject='FW: Stackoverflow N� 456'
Incorrect string value: 'xB0 4100...' for column 'subject' at row 1
Change Collation of your table to utf8_general_ci
I was able to get it to work with a patch supplied by the vendor of my program.

MySQL Error #1366 -- Chinese Characters Fail with big5_chinese encoding

The idea: I'm just trying to save some Chinese characters to a MySQL database.
The issue: apparently, some save while others don't. I've tried to just put em in via phpMyAdmin, but when I try to save them, they turn out to be question marks "?".
The query: UPDATE a9286500_chinese.chinese SET chinese = '贵' WHERE chinese.id =23 LIMIT 1 ;
The error: Warning: #1366 Incorrect string value: '\xE8\xB4\xB5' for column 'chinese' at row 1
The collation of the table is big5_chinese_ci.
Characters like 我 (wo) and 你 (ni) work, whereas characters like 贵 (gui) don't.
Thoughts?
That character (贵) is not encodable in Big5. If you need to handle both Simplified and Traditional Chinese, then you should use a Unicode encoding, like UTF-8.