Decoding error when creating objects

12 views
Skip to first unread message

andreas

unread,
Nov 6, 2009, 6:13:15 AM11/6/09
to porcupine-users
When creating a new object into a container object, i am getting the
following error in the firebug console. I use v0.6 build(20090402)
version of Porcupine and v 3.5.4. of Mozilla.

<html>
<head>
<title>Porcupine Server - Error</title>
</head>
<body style="font-family:Tahoma">
<h3>500 - Internal Server Error</h3>
<table cellspacing="0" width="100%%" bgcolor="#FFFFCC">
<tr>
<td><pre>Traceback (most recent call last):

File "C:\workspace\vardies3\porcupine\core\services\pthread.py",
line 87, in handle_request
self._dispatch_method(item)

File "C:\workspace\vardies3\porcupine\core\services\pthread.py",
line 248, in _dispatch_method
getattr(item, method)(context)

File "C:\workspace\vardies3\porcupine\core\decorators.py", line 76,
in wm_wrapper
return self.execute(item, context)

File "C:\workspace\vardies3\porcupine\webmethods.py", line 88, in
execute
WebMethodDescriptor.execute(self, item, context)

File "C:\workspace\vardies3\porcupine\core\decorators.py", line 95,
in execute
v)

File "C:\workspace\vardies3\porcupine\core\templates.py", line 31,
in string_template
context.response.write(template.substitute(vars))

File "C:\Python26\lib\string.py", line 170, in substitute
return self.pattern.sub(convert, self.template)

File "C:\Python26\lib\encodings\cp1253.py", line 15, in decode
return codecs.charmap_decode(input,errors,decoding_table)

UnicodeDecodeError: 'charmap' codec can't decode byte 0x9c in position
149: character maps to <undefined>

,Please Help

tkouts

unread,
Nov 6, 2009, 6:25:03 AM11/6/09
to porcupine-users
Hi Andrea,

Can you send me the remote method implementation? It seems that
one of the parameters returned to the template engine contain non-
ascii
characters and it should be converted to Unicode.

Tassos

andreas

unread,
Nov 6, 2009, 6:44:35 AM11/6/09
to porcupine-users
The remote method implementation is the following

GET I7FOScBV?cmd=new&cc=org.innoscript.efhmer.schema.Department

thanks Tassos.
> > ,Please Help- Απόκρυψη κειμένου σε παράθεση -
>
> - Εμφάνιση κειμένου σε παράθεση -
Reply all
Reply to author
Forward
0 new messages