0

I have a string like this, and i'm having issues encoding it to UTF-8 :

"únicos do brazil"

I get: "\xFA" on US-ASCII as message of an Encoding::InvalidByteSequenceError for char ú when using: string.encode('UTF-8')
How can i successfully encode \xFA to UTF-8? Thx

Paulo Fidalgo
  • 21,709
  • 7
  • 99
  • 115
JBoy
  • 5,398
  • 13
  • 61
  • 101

0 Answers0