Skip to content

Instantly share code, notes, and snippets.

@enebo
Created February 3, 2011 19:01
Show Gist options
  • Save enebo/809960 to your computer and use it in GitHub Desktop.
Save enebo/809960 to your computer and use it in GitHub Desktop.
match = /./s.match("\303\251".force_encoding(Encoding::Windows_31J))
a = match.to_a,
b = ["\303".force_encoding(Encoding::Windows_31J)]
p a[0][0].encoding, b[0].encoding
p a == b
p a.inspect
p a[0][0] == b[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment