Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. def __init__(self):
  2. """Define the tool (tool name is the name of the class)."""
  3. self.label = "Sample éééé"
  4.  
  5. import sys
  6. reload(sys)
  7. sys.setdefaultencoding("utf-8")
  8.  
  9. sampleString = "éééé"
  10. sampleString.encode('cp1252') #output : éééé
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement