Request Headers:
REFERER: http://127.0.0.1/offline/article_editor/?article_id=31
KEEP-ALIVE: 300
ACCEPT-CHARSET: Big5,utf-8;q=0.7,*;q=0.7
USER-AGENT: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:
1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
CONNECTION: keep-alive
COOKIE: tg-visit=5b7b18b7446078457199c78297a1379591dde46b;
__utma=96992031.33752422.1199547597.1200545354.1200555615.4;
__utmz=96992031.1200498552.1.1.utmcsr=(direct)|utmccn=(direct)|
utmcmd=(none); __utmb=96992031.3; __utmc=96992031.3
Remote-Addr: 127.0.0.1
X-REQUESTED-WITH: XMLHttpRequest
HOST: 127.0.0.1
ACCEPT: application/json
ACCEPT-LANGUAGE: zh-tw,en-us;q=0.7,en;q=0.3
ACCEPT-ENCODING: gzip,deflate
2008-01-17 15:42:47,078 turbogears.access INFO - victor "GET /
article_editor/modify?id=1&tocallback_prefix=content&modify_title=
%E4%B8%AD%E6%96%87&article_id=31 HTTP/1.1" 500 4466 "http://127.0.0.1/
offline/article_editor/?article_id=31" "Mozilla/5.0 (Windows; U;
Windows NT 5.1; zh-TW; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11"
This is a request example.
[Thu Jan 17 15:42:47 2008] [error] '\\xe4\\xb8\\xad\\xe6\\x96\\x87'
This is the title non-decoded string I print in application
print repr(Kwargs['modify_title'])
Not only this example. Every params seems did not be decoded.
On 1月17日, 下午2時31分, "Florent Aide" <[EMAIL PROTECTED]> wrote:
> On Jan 17, 2008 5:51 AM, Victor <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position
> > 0: ordinal not in range(128)
>
> > This error occur in my application.
> > I found that my program try to use non-unicode string and this error
> > occurs.
> > This error occurs after I update to 1.0.4b6 and modify some of my
> > application's files
> > And then I also update cherrypy to 2.3.0.
> > I use previous stable version of my application to try, it run only on
> > cherrypy, this problem also occurs.
>
> > And I print the incoming data
>
> > [Thu Jan 17 11:54:37 2008] [error] '\\xe4\\xb8\\xad\\xe6\\x96\\x87\
> > \xe6\\xb8\\xac\\xe8\\xa9\\xa6'
> > [Thu Jan 17 11:54:40 2008] [error] '\\xe4\\xb8\\xad\\xe6\\x96\\x87\
> > \xe6\\xb8\\xac\\xe8\\xa9\\xa62'
>
> > It did not be decoded. I think it should be u'\u4e2d\u6587\u6e2c
> > \u8a66' some thing like this.
> > print repr('\xe4\xb8\xad\xe6\x96\x87\xe6\xb8\xac
> > \xe8\xa9\xa6'.decode('utf-8'))
>
> It is possible that CP 2.3.0 is changing the way to use this filter.
> Could you send us the request example your are trying: accented
> characters etc...
>
> Florent.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---