xmlproc returning all strings as unicode?

Discussion in 'Python' started by Ellinghaus, Lance, Oct 10, 2003.

  1. Is there a way to make xmlproc not return all strings as unicode?
    I am passing in standard ASCII and it returns all data as unicode...

    Or is there an easy way to convert unicode to standard ASCII?

    lance

    Lance Ellinghaus
    EDS - TWAI Operations
    Phone: 214-922-5454
    Cell: 940-597-4755
     
    Ellinghaus, Lance, Oct 10, 2003
    #1
    1. Advertisements

  2. All XML API is defined to be based on Unicode, by W3C. Don't use
    XML if you don't want Unicode.
    Invoke .encode("ascii") on the strings you get.

    Regards,
    Martin
     
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=, Oct 10, 2003
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.