ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
'ascii' codec can't encode character u'\xe4' in position 4: ordinal not in range(128)
by Balavignesh other posts by this author
Nov 8 2009 2:45AM messages near this date
Re: 'ascii' codec can't encode character u'\xe4' in position 4: ordinal not in range(128) | How to parse HTTP time header?
Hello friends,

           I am using pyWPS + GRASS to generate the maps for the given
request XML.
As my requestxml contains scandinavian letters , i got the following
error,

            " 'ascii' codec can't encode character u'\xe4' in position
4: ordinal not in range(128)    "

The Request xml also contains encoding specification like

           <?xml version="1.0" encoding="UTF-8" standalone="yes"?> 

Then i traced the pywps code and added the following line,

    inputXml = inputXml.encode("utf-8")

But it gives the following error,

      'module' object has no attribute 'parsers'.

Whats the wrong in my code? Do any one implemented the pywps with
scandinavian letters successfully?

Do i need to change anything on pywps part or request xml?

Waiting for suggestions,

Thanks & Regards,
Bala
-- 
http://mail.python.org/mailman/listinfo/python-list

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved