I was wondering if anyone has any clues on this one.
I have an Excel spreadsheet that has some special characters, such as é.
I export the spreadsheet to the CSV format and specify to use UTF-8 text encoding.
I've created a database in MySQL using the UTF-8 character set and collation with the following command:
CREATE DATABASE `importdatabase` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */
Last I've set:
Railo Web Administrator > Datasource > mydsn > "Use Unicode" to true
Railo Web Administrator > Datasource > mydsn > "Charset" = UTF-8
Now using file form field I upload the CSV file to the server, convert it to an array, and then loop over the array to insert it into this database. The first 1024 records are created without any problems, but the 1025 has a special character in it and returns the following Railo error:
Incorrect string value: '\xCE\x94F508...' for column 'value' at row 1
Value in this case is one of the database fields and the actual text it's failing to insert is:
'Diagnostic, ΔF508 and R117H with 5T/9T',
I think I've covered all of my character set bases here, but somethings still not correct. I'm looking for any clues.
--
Troy Murray