From mboxrd@z Thu Jan 1 00:00:00 1970 From: chrisw@rice.edu (Christopher Warrington) Date: Tue, 9 Oct 2007 14:33:52 -0500 Subject: [sup-talk] Sup on Windows In-Reply-To: <1191936765-sup-4487@south> References: <1191878817-sup-5161@south> <1463697592.20071009015408@rice.edu> <1191936765-sup-4487@south> Message-ID: <1125475477.20071009143352@rice.edu> William Morgan @ 2007-10-09 8:38:51 AM "[sup-talk] Sup on Windows" > [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 "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