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. Advertising

  2. Ellinghaus, Lance wrote:

    > 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...


    All XML API is defined to be based on Unicode, by W3C. Don't use
    XML if you don't want Unicode.

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


    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. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alban Hertroys

    xmlproc maintainer?

    Alban Hertroys, Mar 18, 2005, in forum: Python
    Replies:
    1
    Views:
    322
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Mar 18, 2005
  2. Cees Wesseling
    Replies:
    2
    Views:
    1,414
    Cees Wesseling
    Mar 19, 2005
  3. Tim Arnold

    docbook and xmlproc

    Tim Arnold, Jan 22, 2008, in forum: Python
    Replies:
    1
    Views:
    333
    Stefan Behnel
    Jan 23, 2008
  4. mmm

    DTD validation and xmlproc

    mmm, Apr 23, 2008, in forum: Python
    Replies:
    2
    Views:
    508
  5. Asterix
    Replies:
    5
    Views:
    711
    Matt Nordhoff
    Aug 31, 2008
Loading...

Share This Page