You Are Here:

Community: Developer Discussion Boards

#1 Old No accents in the console - 2008-02-11, 10:08

Join Date: Feb 2008
Posts: 3
ldrolez
Offline
Registered User
Hi !

It seems that the console does not like accents.
For example if you run the following code (iso-8859-1 or utf-8 encoding):

Code:
print 'a'
print 'é'
print 'b'
You'll only see 'a'. The accent seems to screw the console (pys60 1.4.2 on a 6630).

Ludo.

PS: Is there a way to change a S60 GUI language to english with a 'special' reflash ?
Reply With Quote

#2 Old Re: No accents in the console - 2008-02-11, 19:34

Join Date: Mar 2003
Posts: 125
Location: UK
aya42
Offline
Regular Contributor
Quote:
Originally Posted by ldrolez View Post
It seems that the console does not like accents.
Confirmed. The command...

Code:
>>> print 'caf\xe9'
...seems to crash the console, whereas...

Code:
>>> print u'caf\xe9'
café
...works file. The inclusion of the Unicode delimiter may be a documented caveat.
Reply With Quote

#3 Old Re: No accents in the console - 2008-02-11, 21:47

Join Date: Feb 2008
Posts: 3
ldrolez
Offline
Registered User
In fact I found this bug by running 'print time.ctime(time.time())' because in my locale the current month is 'février'.

So, should I always convert to unicode like this ?
print unicode(time.ctime(time.time(), 'latin-1')

Bug or feature :-) ?
Reply With Quote

#4 Old Re: No accents in the console - 2008-02-12, 19:26

Join Date: Mar 2003
Posts: 125
Location: UK
aya42
Offline
Regular Contributor
Quote:
Originally Posted by ldrolez View Post
So, should I always convert to unicode like this ?
print unicode(time.ctime(time.time(), 'latin-1')
Well, for now, you don't seem to have any other choice.

Quote:
Originally Posted by ldrolez View Post
Bug or feature :-) ?
No idea. Feels like a bug to me. Check to see if it has been reported on the SourceForge bug tracker, and, if not, report it.

http://sourceforge.net/tracker/?atid...55&func=browse
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Re-Installation Issue with console exe neekasa General Symbian C++ 3 2007-12-27 13:31
Can't kill process when console is enabled alav General Symbian C++ 3 2007-11-28 20:07
PyS60 Python Console step-by-step on Mac OSX notpeter Python 1 2007-09-22 08:56
Can't create new object from console application Symbian 9.1 lian2703 General Symbian C++ 3 2006-11-02 22:58
How to capture key event in console program? seera General Symbian C++ 5 2006-10-25 02:40

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ