Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def __init__(self):
- """Define the tool (tool name is the name of the class)."""
- self.label = "Sample éééé"
- import sys
- reload(sys)
- sys.setdefaultencoding("utf-8")
- sampleString = "éééé"
- sampleString.encode('cp1252') #output : éééé
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement