xmlproc returning all strings as unicode?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ellinghaus, Lance

    xmlproc returning all strings as unicode?

    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



  • Martin v. Löwis

    #2
    Re: xmlproc returning all strings as unicode?

    Ellinghaus, Lance wrote:
    [color=blue]
    > 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...[/color]

    All XML API is defined to be based on Unicode, by W3C. Don't use
    XML if you don't want Unicode.
    [color=blue]
    > Or is there an easy way to convert unicode to standard ASCII?[/color]

    Invoke .encode("ascii" ) on the strings you get.

    Regards,
    Martin

    Comment

    Working...