Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > 'ascii' codec can't encode character u'\xe4' in position 4: ordinalnot in range(128)

Reply
Thread Tools

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

 
 
balavignesh
Guest
Posts: n/a
 
      11-08-2009
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(12 "

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
 
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
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 99: ordinal not in range(128) Francach Python 2 11-06-2005 09:05 PM
Re: 'ascii' codec can't encode character u'\xf3' Martin Slouf Python 6 08-18-2004 06:23 AM
Re: 'ascii' codec can't encode character u'\xf3' oziko Python 2 08-17-2004 04:08 PM
RE: 'ascii' codec can't encode character u'\xf3' Ben Last Python 0 08-17-2004 01:23 PM
'ascii' codec can't encode character u'\xf3' oziko Python 1 08-16-2004 11:12 PM



Advertisments