Donate Share

XRCed

Tracker: Bugs

5 Error reading saved file - ID: 1672218
Last Update: Comment added ( sf-robot )

XRCed shows error when open a previously saved file.

The detail is:
14:16:08: ExpatError: unknown encoding: line 1, column 30
14:16:08: Error reading file: D:\temp\UNTITLED.xrc

My xrc file is:
<?xml version="1.0" encoding="cp936"?>
<resource>
<object class="wxFrame" name="FRAME1">
<title></title>
</object>
</resource>

"cp936" is auto detected by XRCed, a Chinese encoding.

Windows 2000 Pro
XRCed 0.1.7-5 or 0.1.8-1
Python 2.4
wxPython 2.8


Jin Qing ( jinq0123 ) - 2007-03-02 06:27

5

Closed

None

Nobody/Anonymous

None

None

Public


Comments ( 2 )




Date: 2007-03-25 02:20
Sender: sf-robotSourceForge.net Site Admin


This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).


Date: 2007-03-11 00:53
Sender: rollromProject AdminAccepting Donations


I think python's expat module does not support cp936 (and probably
wxWidget's XRC library neither as it also uses expat parser. See
http://www.thescripts.com/forum/thread29232.html). There seems to be a way
to add support for chinese encodings in python, for example see
http://www.thescripts.com/forum/thread22617.html where CJK codecs package
is mentioned but the better solution is probably to use unicode (UTF-8
encoding).


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
status_id Pending 2007-03-25 02:20 sf-robot
close_date 2007-03-11 00:53 2007-03-25 02:20 sf-robot
status_id Open 2007-03-11 00:53 rollrom
close_date - 2007-03-11 00:53 rollrom