# File lib/mail/fields/unstructured_field.rb, line 25 def initialize(name, value, charset = nil) @errors = [] if charset self.charset = charset else if value.to_s.respond_to?(:encoding) self.charset = value.to_s.encoding else self.charset = $KCODE end end self.name = name self.value = value self end