I’m using Mysql (5.5.27) with .Net connector (6.5.4), and when i’m trying to insert some data, i’m getting following error.
Incorrect string value: '\xF3\xB6\xA5\x89f'...' for column 'STACK_TRACE' at row 1
I have already searched enough on stack overflow, and tried following charset & collation for database, table and column.
- ‘utf8’ ‘utf8_general_ci’
- ‘utf8’ ‘utf8_unicode_ci’
- ‘utf8mb4’ ‘utf8mb4_general_ci’
- ‘utf8mb4’ ‘utf8mb4_unicode_ci’
I have set ‘charset=utf8’ in connection string properly.
- Is there any thing wrong with that particular unicode character ? I don’t have control over the data, its collected from lot of android phones.
- Is it mysql bug ?
I have solved it, by doing following changes.
As @eggyal mentions, column charset and collation only matters, i have set all default values, so that I don’t have update all new columns in future.