Hi, matz > |Although an encoding of the data from the DB is UTF-8, ruby doesn't > |know the encoding, so you must do tell ruby the encoding before > |encoding to Windows-1252. > | > | tell ruby the encoding > | ¨Βωδατα®ζοςγείεξγοδιξηΆΥΤΖΈ> | encode to windows-1252 > | ¨Βωδατα®εξγοδεΆχιξδοχσ±²µ²Ά > > For the record, you don't have to use force_encoding: > > ¨Βωδατα®εξγοδε¨Άχιξδοχσ±²µ²Ά¬ ΆΥΤΖΈΆ© I missed the +src_encoding+ arg and the +option+ arg. Now I see a String#encode method is a very useful. http://www.ruby-doc.org/core/classes/String.html#M001113 thanks! -- nobuoka