bugBKChem - Bugs: bug #31000, Unicode/UTF-8 problem in OASA


bug #31000: Unicode/UTF-8 problem in OASA

Submitted by:  None
Submitted on:  Wed 08 Sep 2010 10:12:50 PM UTC  
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: Reinis Danne <abadar>
Open/Closed: Open

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sun 12 Sep 2010 02:39:44 PM UTC, comment #1:

Hi! Thank you for the report. This is the right place for this. Could you provide a minimal example which demonstrates the issue? That would help me to decide which is the most appropriate way to fix this.


Reinis Danne <abadar>
Project AdministratorIn charge of this item.
Wed 08 Sep 2010 10:12:50 PM UTC, original submission:

I'm not sure that this is the right place for this, but I was having problem with OASA and superscripts and subscripts. Basically, the string that was fed to xml.sax.parseString was Unicode, which isn't valid XML, so I got an exception. To solve this, I changed line 653 in cairo.out to xml.sax.parseString( ("<x>%s</x>" % text).encode('utf-8') , handler)

This solved the problem for me at least. I don't know if it is a general problem or if it's something specific to my setup. I'm using OASA through the cinfony cdk JPYPE package.

Kind regards,



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by abadar (Posted a comment)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 12 Sep 2010 02:39:44 PM UTCabadarAssigned toNone=>abadar

    Back to the top

    Powered by Savane 3.1-cleanup1