From: Sam Roberts Date: 2006-05-02T00:23:14+09:00 Subject: Re: How to decode the following string Rich Ard wrote: > hello, > > when i work on a pop mail client program, i met the following string at > the Subject field: > > Subject: =?GBK?B?dnNvYy5jbiDXorLhs8m5piE==?= > Subject: =?GB2312?B?RndkOiCyu7rD0uLLvKOsvfHM7LLF1qq1wMTjtcTTys/k?= > > i know they are encoded chinese words. but anybody can advise on how to > decode them? They are RFC 2047 encoded words. I wrote a small lib to decode them, this might be the latest version: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/101949 Email me off line if not, and I'll send it to you. Something like it really, REALLY should be part of one of the ruby mail libraries... even Net::IMAP if necessary. Cheers, Sam