[wingide-users] Confused about OS Commands tool box display of unicode data.
BarryMossman at primos.com.au
Sun Mar 18 06:50:09 MDT 2012
Hi I have read some data from text file encoded with utf-8 as follows:
with codecs.open(filename='playcounts.txt', mode='r', encoding='utf-8') as
data = scrobble_file.readline()
I then print the data with a print statement.
If I do this in the debugger, or run the program externally outside the IDE,
the displayed output is as expected.
If I run the program using the OS Comands tool box the print statement fails
with "'ascii' codec can't encode character u'\xe1' in position 6: ordinal
not in range(128)"
Is there something I need to configure with regard to the OS Commands
I tried the Edit|Preferences|Debugger|IO options, but could find anything
for the OS Command toolbox display.
I am running on Windows. Wing v4.1.3-1
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the wingide-users