Comment #3 on issue 2054 by roasti...@gmail.com: RBTools-0.3.2 + Perforce - failed to upload diff when source file is a new file
http://code.google.com/p/reviewboard/issues/detail?id=2054

Referring to the bug description above by benbe...@gmail.com:

File "c:\Python27\lib\httplib.py", line 809, in _send_output
    msg += message_body

The problem was that one string is ASCII and the other is Unicode.
The solution is to create a sitecustomize.py file that says:

    #!/usr/local/bin/python
    # -*- coding: UTF-8 -*-

    import sys
    sys.setdefaultencoding('utf-8')

and store the file at %PYTHONHOME%/Lib/site-packages.
This step says that all strings should be treated as Unicode.
The bug is then fixed.

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.

Reply via email to