Comment 1 for bug 1149813

Revision history for this message
OpenRAVE Development (openrave) wrote :

i think it is bad to rely on sys.stdout, some programs do not have it set (like a python module running in wsgi with apache2 server). it's safer to use:

return result.encode(sys.getfilesystemencoding() or "ascii", "replace")