I'm trying to import data into my table. The source is CSV in UTF8 encoding into my MySQL UTF8MB4 table.
Originally i thought the encoding was wrong for the language which is Russian (for this failed row) but it turns out its a slash "/" in the string (or any other similar chars) and when i remove it then insert works to that point.
This data is multi language and has emoji too, what is the best way to handle the slash in the double quote enclosed string?
For example the slash in this is the problem "й\с"
When i run
SHOW VARIABLES WHERE Variable_name LIKE 'character\_set\_%' OR Variable_name LIKE 'collation%'
I get
Variable_name | Value |
---|---|
character_set_client | utf8mb4 |
character_set_connection | utf8mb4 |
character_set_database | utf8mb4 |
character_set_filesystem | binary |
character_set_results | utf8mb4 |
character_set_server | latin1 |
character_set_system | utf8 |
collation_connection | utf8mb4_general_ci |
collation_database | utf8mb4_unicode_ci |
collation_server | latin1_swedish_ci |