User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 427,935 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,962 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Python advertiser: Programming Forums
Views: 224 | Replies: 2 | Solved
Reply
Join Date: Aug 2008
Posts: 8
Reputation: friendklay is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
friendklay friendklay is offline Offline
Newbie Poster

Need Help. wx.TextCtrl and Unicode Data.

  #1  
Aug 7th, 2008
When I enter Unicode data as values for TextCtrl, I get the following errors:
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 5: charac
ter maps to <undefined>

I am trying enter Burmese text (U+1000 to U+10FF).
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2008
Posts: 8
Reputation: friendklay is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
friendklay friendklay is offline Offline
Newbie Poster

Re: Need Help. wx.TextCtrl and Unicode Data.

  #2  
Aug 7th, 2008
Solved. String needs to be of Unicode type by explictily appending u"someunicodestring". . BUT, I need to set the font for the display to work correctly. Now it is showing rectangles.
Reply With Quote  
Join Date: Aug 2008
Posts: 8
Reputation: friendklay is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
friendklay friendklay is offline Offline
Newbie Poster

Re: Need Help. wx.TextCtrl and Unicode Data.

  #3  
Aug 8th, 2008
I could add custom fonts as the 6th arg of wx.Font method.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Python Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Python Forum

All times are GMT -4. The time now is 6:28 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC