ANN: RFC 2047 decoding library (MIME format for non-ascii in mail headers)

Hi,

···

At Fri, 18 Apr 2003 09:44:36 +0900, Sam Roberts wrote:

  # Convert:
  #
  # Remember - Iconv.open(to, from)!
  begin
    i = Iconv.open(target, charset)
    text = i.iconv(text)
    text += i.close
      text = Iconv.iconv(target, charset, text).join

Iconv provides a short hand method for it. Iconv.iconv returns
converted strings and a string contains the byte sequence to
change the output buffer to its initial shift state.


Nobu Nakada