Skip to content

Instantly share code, notes, and snippets.

@timmfin
Created September 16, 2010 03:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timmfin/581906 to your computer and use it in GitHub Desktop.
Save timmfin/581906 to your computer and use it in GitHub Desktop.
#!/usr/local/bin/macruby
s = "#{
"\uFEFF".encode("UTF-8").force_encoding("BINARY")
}"
puts "A single BOM Worked!"
s = "first: #{
"\uFEFF".encode("UTF-8").force_encoding("BINARY")
} second: #{
"\uFEFF".encode("UTF-8").force_encoding("BINARY")
}"
puts "Two BOMs Worked!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment