thecocce / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Lack of Unicode support #330

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Type following code and it shows extra spaces between characters in the
code pane. (Script is Sinhala)
#-*- coding: UTF-8 -*-
print "අසඩෆඅසඩෆ"
2. When you run it it will only show some question marks ?????? (in the
python interpreter pane - see attached image)
3. I tried using "අසඩෆඅසඩෆ".decode('utf-8') but no luck

What is the expected output? What do you see instead?
අසඩෆඅසඩෆ

What version of the product are you using? On what operating system?
1.9.9.7 on XP (Python 2.6.2)

Please provide any additional information below.
When saved the file and executed, the output will 
show:අසඩෆඅසඩෆ
Following code shows characters in the output area, but with extra spaces:
#-*- coding: UTF-8 -*-
print "අසඩෆඅසඩෆ".decode('utf-8')

Saved file works fine in DrPython.

Original issue reported on code.google.com by was...@gmail.com on 6 Aug 2009 at 2:59

Attachments:

GoogleCodeExporter commented 9 years ago
#-*- coding: UTF-8 -*-
print u"අසඩෆඅසඩෆ"
##----^

Original comment by pyscripter on 2 Jan 2010 at 12:45