Closed
Description
I have specified:
Py.getSystemState().setdefaultencoding("utf-8");
however, garbled text still occurs when I run the following code:
import logging
log = logging.getLogger(name)
print('今天的天气怎么样?{}'.decode('utf-8'))
print('还好吧')
log.info('今天的天气怎么样?{}'.decode('utf-8'), '还好')
result='呵呵'
console:
今天的天气怎么样?{}
还好吧
16:44:21.142 [main] INFO main - 今天的天气怎么样?è¿�好
��
unless I force the use :decode('utf-8')
but print() is correct
Metadata
Metadata
Assignees
Labels
No labels