Hi, So far I have come come with poor solution: class String require 'iconv'
def iso1_to_utf8 Iconv.conv("UTF-8", "ISO-8859-1", self) rescue self end def utf8_to_iso1 Iconv.conv("ISO-8859-1", "UTF-8", self) rescue self end end class NCustomer < ActiveRecord::Base ... def after_initialize self.attributes.each do |k,v| if v.class.to_s == "String" and !v.empty? self[k] = v.iso1_to_utf8 end end end def before_save self.attributes.each do |k,v| if v.class.to_s == "String" and !v.empty? self[k] = v.utf8_to_iso1 end end end ... end Cheers, Tomasz Bak -- Posted via http://www.ruby-forum.com/. _______________________________________________ Railsi18n-discussion mailing list Railsi18n-discussion@rubyforge.org http://rubyforge.org/mailman/listinfo/railsi18n-discussion