# Mysql::Error: #HY000Illegal mix of collations (latin1\_swedis

**URL:** <https://www.ruby-forum.com/t/mysql-hy000illegal-mix-of-collations-latin1-swedis/148825>\
**Category:** Rails\
**Created:** [September 17, 2008, 1:15pm UTC](https://www.ruby-forum.com/t/mysql-hy000illegal-mix-of-collations-latin1-swedis/148825 "2008-09-17T13:15:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neetinforum](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/779978/32.png) [@neetinforum](https://www.ruby-forum.com/u/neetinforum)\
**Post date:** [September 17, 2008, 1:15pm UTC](https://www.ruby-forum.com/t/mysql-hy000illegal-mix-of-collations-latin1-swedis/148825/1 "2008-09-17T13:15:17Z")

</div>

while parsing the xml i try to read user name which having some Special  
charcter,so while parsing i got the error :-\> Mysql::Error:  
#HY000Illegal mix of collations (latin1\_swedish\_ci,IMPLICIT) and  
(utf8\_general\_ci,COERCIBLE) for operation ‘like’: SELECT \* FROM `users`  
WHERE (firstname like ‘Â€uromole’) LIMIT 1  
(ActiveRecord::StatementInvalid) i call like [ user =  
User.find(:first,:conditions=\>[“firstname like ?”,node[‘id’]]) ]  
help me to solve this issue…
