Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. b = "କାହିଁକି ଏଇଠି ଅଛୁ "
  2. x = b.encode()
  3. print(x)
  4. m = x.decode()
  5. print(m)
  6.  
  7. b'xe0xacx95xe0xacxbexe0xacxb9xe0xacxbfxe0xacx81xe0xacx95xe0xacxbf xe0xacx8fxe0xacx87xe0xacxa0xe0xacxbf xe0xacx85xe0xacx9bxe0xadx81 '
  8. Traceback (most recent call last):
  9. File "x:Pythonxx36Egodexpeppp.py", line 9, in <module>
  10. print(m)
  11. File "C:ProgramDataMiniconda3envspygpulibencodingscp1252.py", line 19, in encode
  12. return codecs.charmap_encode(input,self.errors,encoding_table)[0]
  13. UnicodeEncodeError: 'charmap' codec can't encode characters in position 0-6: character maps to <undefined>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement