Convert a UTF-8 string to ISO-8859-1
#add this to environment.rb #call to_iso on any UTF8 string to get a ISO string back #example : "Cédez le passage aux français".to_iso class String require 'iconv' #this line is not needed in rails ! def to_iso Iconv.conv('ISO-8859-1', 'utf-8', self) end end