Skip to content

Instantly share code, notes, and snippets.

@topfunky
Created July 24, 2008 20:36
Show Gist options
  • Save topfunky/2289 to your computer and use it in GitHub Desktop.
Save topfunky/2289 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# Use as TextMate command to convert
require 'iconv'
puts Iconv.iconv('utf-8', 'utf-16le', File.read(ENV['TM_FILEPATH'])).first
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment