Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

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

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


kbalavignesh at gmail

Nov 8, 2009, 2:37 AM

Post #1 of 2 (296 views)
Permalink
'ascii' codec can't encode character u'\xe4' in position 4: ordinal not 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
--
http://mail.python.org/mailman/listinfo/python-list


ben+python at benfinney

Nov 8, 2009, 2:51 AM

Post #2 of 2 (288 views)
Permalink
Re: 'ascii' codec can't encode character u'\xe4' in position 4: ordinal not in range(128) [In reply to]

balavignesh <kbalavignesh [at] gmail> writes:

> Whats the wrong in my code?

Without seeing your code, all we could do is guess, poorly.

Far better would be if you can construct a very small example, one that
you post here so any reader here could run it, that demonstrates the
behaviour you want explained. Don't forget to say what you expect the
code to do differently.

--
\ “I can picture in my mind a world without war, a world without |
`\ hate. And I can picture us attacking that world, because they'd |
_o__) never expect it.” —Jack Handey |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.