About: Decode MIME text using Perl in Vim   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

If you have MIME Base64 or Quoted-Printable encoded text in a Vim buffer, the following commands can be used to replace the encoded lines with their decoded information. Just visually select the lines corresponding to the encoded text and issue the appropriate command (:Decode64 or :DecodeQP).

AttributesValues
rdfs:label
  • Decode MIME text using Perl in Vim
rdfs:comment
  • If you have MIME Base64 or Quoted-Printable encoded text in a Vim buffer, the following commands can be used to replace the encoded lines with their decoded information. Just visually select the lines corresponding to the encoded text and issue the appropriate command (:Decode64 or :DecodeQP).
Version
  • 6(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1031(xsd:integer)
Category
  • Email
  • Encoding
Author
  • Suresh Govindachar
Complexity
  • intermediate
Created
  • 2005(xsd:integer)
ID
  • 1032(xsd:integer)
NEXT
  • 1033(xsd:integer)
Rating
  • 14(xsd:integer)
abstract
  • If you have MIME Base64 or Quoted-Printable encoded text in a Vim buffer, the following commands can be used to replace the encoded lines with their decoded information. Just visually select the lines corresponding to the encoded text and issue the appropriate command (:Decode64 or :DecodeQP). command! -range=% Decode64 :w | ,delete | let foo = @" \| perl my $foo=VIM::Eval(foo); my ($r, $c)=$curwin->Cursor(); $curbuf->Append($r-1, split ' ', MIME::Base64::decode($foo)); command! -range=% DecodeQP :w | ,delete | let foo = @" \| perl my $foo=VIM::Eval(foo); my ($r, $c)=$curwin->Cursor(); $curbuf->Append($r-1, split ' ', MIME::QuotedPrint::decode_qp($foo));
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software