William Morgan @ 2007-10-09 8:38:51 AM
"[sup-talk] Sup on Windows" <mid:1191936765-sup-4487 at south>
> [cc''ing list, hope you don''t mind]
No, I don''t. The first one was not meant as a PM. I screwed up.
>> Here''s a screenshot:
http://www.chriswarrington.com/sup_win.png
> Weird, why are all the sender names missing?
I imported those messages from the list archive, so they are not in
the proper mbox format. The e-mail addresses are munged such that
a at b.tld becomes a at b.tld. In other words, not a bug.
>> I was getting lots of errors like these when importing my archive:
>> [Tue Oct 09 01:51:05 -0500 2007] warning: error decoding message body
from
>> "us-ascii": invalid encoding ("utf-8",
""us-ascii"")
> This sounds like iconv is being stubborn. Can you do this?
> $ irb -riconv
> >> Iconv.iconv "utf-8", "us-ascii", "hello
there"
> => ["hello there"]
It seems to work:
$ irb -riconv
irb(main):001:0> Iconv.iconv "utf-8", "us-ascii",
"hello there"
=> ["hello there"]
irb(main):002:0> Iconv.iconv "us-ascii", "utf-8",
"hello there"
=> ["hello there"]
irb(main):003:0> Iconv.iconv "us-ascii", "iso-8859-15",
"hello there"
=> ["hello there"]
irb(main):004:0> Iconv.iconv "iso-8859-15", "utf-8",
"hello there"
=> ["hello there"]
irb(main):005:0> Iconv.iconv "iso-8859-15", "us-ascii",
"hello there"
=> ["hello there"]
irb(main):006:0> Iconv.iconv "us-ascii", "iso-8859-15",
"hello there"
=> ["hello there"]
--
Christopher Warrington <chrisw at rice.edu>
"When in doubt, use brute force."
-Ken Thompson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 183 bytes
Desc: not available
Url :
http://rubyforge.org/pipermail/sup-talk/attachments/20071009/367c7513/attachment.bin