Skip to content

Instantly share code, notes, and snippets.

@msr1k
Created July 30, 2012 13:46
Show Gist options
  • Save msr1k/3207026 to your computer and use it in GitHub Desktop.
Save msr1k/3207026 to your computer and use it in GitHub Desktop.
Decode vcf file (ARGV[0]).
# encoding : sjis
result = File.read( ARGV[0] ).gsub( /=(\n|[0-9A-F]{2})/ ){ |e| e.unpack("M")[0] }
puts result
@Berineus
Copy link

Hi! Do you know how do I decode an VCF file? I try everything and nothing happens. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment