[Twisted-Python] Twisted FTP: Data must not be unicode
solipsis at pitrou.net
Thu Nov 24 09:23:55 EST 2011
On Thu, 24 Nov 2011 14:07:07 -0000
exarkun at twistedmatrix.com 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"
More information about the Twisted-Python