Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3376 by nicolas....@gmail.com: RBTools 0.6 - UnicodeEncodeError with ISO-8859-15
http://code.google.com/p/reviewboard/issues/detail?id=3376

What version are you running?
ReviewBoard 2.0 / RBTools 0.6

What's the URL of the page containing the problem?
Not applicable as it's a RBTools issue.
------------------------------------
What steps will reproduce the problem?
1. Create a new review with RBTools using ISO-8859-15
2. See RBTools log
------------------------------------
Expected output: A review should be created with the corresponding diff.
Actual Result:
------------------------------------
Got API Error 105 (HTTP code 400): One or more fields had errors
Error data: {u'fields': {u'path': [u"Unable to parse diff revision
header '(r\xc3\xa9vision 0)'"]}, u'stat': u'fail', u'err': {u'msg':
u'One or more fields had errors', u'code': 105}}
Traceback (most recent call last):
  File "/usr/local/bin/rbt", line 9, in <module>
    load_entry_point('RBTools==0.6', 'console_scripts', 'rbt')()
File "/usr/local/lib/python2.6/dist-packages/RBTools-0.6-py2.6.egg/rbtools/commands/main.py", line 134, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
File "/usr/local/lib/python2.6/dist-packages/RBTools-0.6-py2.6.egg/rbtools/commands/__init__.py", line 422, in run_from_argv
    exit_code = self.main(*args) or 0
File "/usr/local/lib/python2.6/dist-packages/RBTools-0.6-py2.6.egg/rbtools/commands/post.py", line 769, in main
    submit_as=self.options.submit_as)
File "/usr/local/lib/python2.6/dist-packages/RBTools-0.6-py2.6.egg/rbtools/commands/post.py", line 539, in post_request
    error_msg.append(str(e) + '\n')
UnicodeEncodeError: 'ascii' codec can't encode characters in position 107-108: ordinal not in range(128)
------------------------------------
Operating system: Windows 7-64
Browsers: Internet Explorer 8 / Google Chrome
------------------------------------

Hello,

Format error has been corrected in some python files for Review Board, but it seems that this issue is present since several RBTools versions. It works well for text files with UTF-8 format, but when we want to upload diff with ISO-8859-15, we have the error describe in the "actual result" part.

In ISO-8859-15, there are characters such as "éèùàçê".

Thanks and Best regards.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.

Reply via email to