Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > xx = "\xE2\x82\xAC"
- "\xE2\x82\xAC"
- > xx.bytes
- [92, 120, 69, 50, 92, 120, 56, 50, 92, 120, 65, 67]
- xx.force_encoding('utf-8')
- xx.encode('utf-8')
- xx.force_encoding('binary').force_encoding('utf-8')
- xx.encode('ASCII-8BIT').encode('utf-8')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement