On Thu, 24 Nov 2011 14:07:07 -0000
[email protected] wrote:
> 
> A more correct solution would be `line.encode(someencoding)`.  However, 
> looking at `sendLine`, it's clear that the value of `someencoding` is 
> not easily decided upon.  Should it be UTF-8?  ASCII with an error 
> replacement policy?  cp1252?  Does it depend on the client, or the 
> server, or the filesystem encoding, or a user preference?

RFC 3659 specifies UTF-8 as the default encoding.
The Python 3 port of Twisted uses this (with the "surrogateescape"
error handler).

Regards

Antoine.



_______________________________________________
Twisted-Python mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to