charset problem
Posted by: László Kővári
Date: November 17, 2011 03:07PM

Hello Everybody,

I have a table named 'words' and it contains words. /id long, word char(50)/

I executed a select statement, for search word. The statement doesn't differentiate between two words 'cipó' and 'cipö'

select * from words where word = 'cipö'
The query found the word 'cipó' too. Why?

The charset is utf8 and the collation is utf8_generail_ci.

I tried with this

select * from words where BINARY word = 'cipö'
It works perfectly. But, the HIBERNATE what I use doesn't know this syntax.


Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
charset problem
4411
November 17, 2011 03:07PM
1939
November 19, 2011 12:47AM
2371
November 21, 2011 05:29PM
3101
November 24, 2011 10:06PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.