Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- phrase1 = "phrase"
- => "phrase"
- phrase2 = "phrase".force_encoding("utf-8").force_encoding("US-ASCII")
- => "phrase"
- phrase1.bytes.to_a == phrase2.bytes.to_a
- => true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement