Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > xmlproc returning all strings as unicode?

Reply
Thread Tools

xmlproc returning all strings as unicode?

 
 
Ellinghaus, Lance
Guest
Posts: n/a
 
      10-10-2003
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



 
Reply With Quote
 
 
 
 
=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
Guest
Posts: n/a
 
      10-10-2003
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DTD validation and xmlproc mmm Python 2 04-24-2008 08:20 PM
docbook and xmlproc Tim Arnold Python 1 01-23-2008 12:29 PM
Strings, Strings and Damned Strings Ben C Programming 14 06-24-2006 05:09 AM
setDocumentLocator in validating parser (xmlproc) Cees Wesseling Python 2 03-19-2005 09:27 AM
xmlproc maintainer? Alban Hertroys Python 1 03-18-2005 07:10 PM



Advertisments