0
The string that could not be encoded/decoded was: 熔树脂温度(℃)
'ascii' codec can't encode characters in position 0-4: ordinal not in range(128)
我想编码ascii字符,但我得到错误。我曾尝试过如何编码或解码ascii编解码器?
熔树脂温度(℃).encode('utf-8')
熔树脂温度(℃).encode('utf8')
unicode(熔树脂温度(℃),'utf-8')
没有什么可行的。
我相信你需要的Unicode没有ASCII – chbchb55
'.encode( 'UTF-8')'没有工作?这个对我有用。 – Rishav
我不确定python-2.7是否启用了unicode,你可能需要python3 – chbchb55