M
Mark Toth
I have a database with latin1_swedish_ci encoding.
In my database.yml file there is:
development:
adapter: mysql
encoding: latin1
When I import data to the database it will store it correctly, but when
I´m reading it from the databse I get ��� instead of åäö.
I´m using the following code to read from the databse:
@results = Product.findall, :conditions => [ "sku LIKE ?",
a1+@searchstring+a2], :limit => 50)
Any idea? I´ve tried to set the $KCODE = 'latin1' without success.
In my database.yml file there is:
development:
adapter: mysql
encoding: latin1
When I import data to the database it will store it correctly, but when
I´m reading it from the databse I get ��� instead of åäö.
I´m using the following code to read from the databse:
@results = Product.findall, :conditions => [ "sku LIKE ?",
a1+@searchstring+a2], :limit => 50)
Any idea? I´ve tried to set the $KCODE = 'latin1' without success.