Hi! If I specify in the first line of a plugin, would it mean the script would also default to utf-8 for strings?
In standalone scripts I normally add or
to force utf-8 in the program so I wouldn't have to add 'u' before each string declaration. How to do the same in a plugin?
<?xml version="1.0" encoding="utf-8"?>In standalone scripts I normally add
# -*- coding: utf-8 -*-import sys
reload(sys)
sys.setdefaultencoding("utf-8")to force utf-8 in the program so I wouldn't have to add 'u' before each string declaration. How to do the same in a plugin?