def setencoding():
encoding = "<STR_LIT:ascii>" <EOL>if <NUM_LIT:0>:<EOL><INDENT>import locale<EOL>loc = locale.getdefaultlocale()<EOL>if loc[<NUM_LIT:1>]:<EOL><INDENT>encoding = loc[<NUM_LIT:1>]<EOL><DEDENT><DEDENT>if <NUM_LIT:0>:<EOL><INDENT>encoding = "<STR_LIT>"<EOL><DEDENT>if encoding != "<STR_LIT:ascii>":<EOL><INDENT>sys.setdefaultencoding(encoding)<EOL><DEDENT>
Set the string encoding used by the Unicode implementation.  The
    default is 'ascii', but if you're willing to experiment, you can
    change this.