If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Incorrect string value

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-04-11, 16:05
sconly sconly is offline
Registered User
 
Join Date: Oct 2005
Posts: 14
Question Incorrect string value

When trying to import data from excel i get the following error:

Incorrect string value: \xE2\x88\x9E),'for column 'Specification' at row 1 (#1366)

Can anyone point me in the right direction for a solution to this error?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 01-04-11, 18:30
it-iss.com it-iss.com is offline
Registered User
 
Join Date: Sep 2009
Location: San Sebastian, Spain
Posts: 623
It could be that the 3 characters \xE2, \x88 and \x9E are not valid characters that would fit into the type that you have defined. Check the data in the Excel spreadsheet to make sure it contains only valid characters that correspond to the datatype you are importing into.
__________________
Ronan Cashell
Senior Oracle/MySQL DBA
http://www.it-iss.com
Reply With Quote
  #3 (permalink)  
Old 01-05-11, 07:38
sconly sconly is offline
Registered User
 
Join Date: Oct 2005
Posts: 14
Thanks for that.

How can i find out what the characters are?
Reply With Quote
  #4 (permalink)  
Old 01-05-11, 08:06
it-iss.com it-iss.com is offline
Registered User
 
Join Date: Sep 2009
Location: San Sebastian, Spain
Posts: 623
How are you uploading the data into the database? Are you converting Excel to CSV or are you using ODBC to perform this operation? It looks like you are using multiset characters. Have you created the database and table using UTF8 characterset?

I have investigated a little more and found that there appears to be a bug with insert statements with a different characterset. Take a look at this link
__________________
Ronan Cashell
Senior Oracle/MySQL DBA
http://www.it-iss.com
Reply With Quote
  #5 (permalink)  
Old 01-05-11, 08:12
r937 r937 is online now
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,535
Quote:
Originally Posted by sconly View Post
How can i find out what the characters are?
\xE2 = alt+0226 = â
\x88 = alt+0136 = ˆ
\x9E = alt+0158 = ž
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #6 (permalink)  
Old 01-05-11, 10:49
sconly sconly is offline
Registered User
 
Join Date: Oct 2005
Posts: 14
Thanks for that r937, but I don't see them characters anywhere in the text that i'm importing.
Where did you get that info from?

it-iss.com
The way i'm doing it is (this might be a bit long winded, and probably the wrong way).

I use Access to import the excel and then from Access I export to ODBC.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On