Error: "Overlong 3 byte UTF-8 sequence detected when encoding string"

2,037 views
Skip to first unread message

MrGoodbyte

unread,
Mar 26, 2011, 6:57:35 AM3/26/11
to gevent: coroutine-based Python network library
Hello,

I'm writing a server application(for message delivery) with gevent. In
that application, I store some of client sockets(fileobj) in a list
object. When I receive a message, there is no problem if I send a
response to sender socket(sender's fileobj) but if I send a response
to any of stored fileobj objects I get this error:

"Overlong 3 byte UTF-8 sequence detected when encoding string"

http://pastebin.com/nfsWeh5Z

Thank you.

Umut Aydin

unread,
Mar 26, 2011, 7:47:53 PM3/26/11
to gevent: coroutine-based Python network library
Hello again,

I just solved my problem. I realized that I made a mistake. Delivery code was sending some part of messages as objects(UUID) instead of string and that situation caused my problem. It's probably because of hex header information.

Thank you anyway. I ll share source codes of my project as soon as I complete some documents.
Reply all
Reply to author
Forward
0 new messages