On 10 Aug 2016, at 9:56, irep wrote:

How can I decode quoted-printable paragraphs or the whole text in say UTF8 with BBedit 11 or TextWrangler ?  I am totally newbie with grep. I thought one could find a kind of "shared library" filled with grep patterns to do this :)
I have found tools online but its not so handy. 

Paste the following into a file, and save it in the BBEdit “Text Filters” directory.

        #!/usr/bin/perl -w

        use strict;

        use MIME::Decoder;

my $decoder = new MIME::Decoder 'quoted-printable' or die "unsupported";
        $decoder->decode(\*STDIN, \*STDOUT);

        1;

If `MIME::Decoder` isn’t already installed; try to install with:

    sudo cpan MIME::Decoder

Charlie
--

   Charlie Garrison  <garri...@zeta.org.au>
   github.com/cngarrison   metacpan.org/author/CNG

O< ascii ribbon campaign - stop html mail
[Conundrum](http://www.ietf.org/rfc/rfc1855.txt)

--
This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to