• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MySQL error

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have set the encoding in MySql as utf8.
But when I try to insert a entry into the table, I get

mysql> INSERT INTO verbTable6 VALUES(1,'to be','Irregular','present','I','t�im',
'n�lim');
ERROR 1366 (HY000): Incorrect string value: '\xA0im' for column 'positive' at ro
w 1
 
Paul Cullen
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was able to add to database partially when turned strict mode off.But cant seem to add whole words to the database in the positive and negative columns when I use words with �,�,�,�,�.


mysql> INSERT INTO verbTable6 VALUES(1,'to be','Irregular','present','I','t�im',
'n�lim');
Query OK, 1 row affected, 2 warnings (0.03 sec)




mysql> SELECT * FROM verbTable6 WHERE word = 'to be' AND tense = 'past';
+------+-------+-----------+-------+-------------+----------+----------+
| id | word | verbType | tense | englishForm | positive | negative |
+------+-------+-----------+-------+-------------+----------+----------+
| 16 | to be | Irregular | past | I | bh | n |
| 17 | to be | Irregular | past | You | bh | n |
| 18 | to be | Irregular | past | He | bh | n
 
When people don’t understand what you are doing they call you crazy. But this tiny ad just doesn't care:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic