Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   'ascii' codec can't encode character u'\xe4' in position 4: ordinalnot in range(128) (http://www.velocityreviews.com/forums/t704609-ascii-codec-cant-encode-character-u-xe4-in-position-4-ordinalnot-in-range-128-a.html)

balavignesh 11-08-2009 10:37 AM

'ascii' codec can't encode character u'\xe4' in position 4: ordinalnot in range(128)
 
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


All times are GMT. The time now is 04:56 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.