MezzoNZ / crunchy

Automatically exported from code.google.com/p/crunchy
0 stars 0 forks source link

rst_edit widget error with unicode chars #252

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add non-ascii text to rst_edit widget editor

What is the expected output? What do you see instead?
correct rst output like when done at http://www.tele3.cz/jbar/rest/rest.html

instead an error:
Traceback (most recent call last): File
"/media/rkc_ext4/python/other/crunchy-read-only/crunchy/src/http_serve.py",
line 308, in do_POST self.server.get_handler(self.path)(self) File
"/media/rkc_ext4/python/other/crunchy-read-only/crunchy/src/plugins/rst_edit.py"
,
line 75, in rst_edit_callback request.wfile.write(text.encode('utf-8'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5915:
ordinal not in range(128) 

What version of the product are you using? On what operating system?

Crunchy version: svn r1406
OS: Ubuntu Jaunty, UTF-8

Additional comments:
By the way, I know this feature is still on 'experimental' items, so it's
not surprising it doesnt work with unicode. This is kick-ass for using
without unicode (works great). Would be great if also works with unicode.
Thanks! Thomas

Original issue reported on code.google.com by twoelz on 15 Sep 2009 at 10:30

GoogleCodeExporter commented 8 years ago
Thanks for reporting the bug.  Fixed in revision 1407.   I should have noticed 
this
myself...

Keeping the status open for now so that it is visible and others do not file 
this bug
again.

Original comment by andre.ro...@gmail.com on 15 Sep 2009 at 11:39

GoogleCodeExporter commented 8 years ago

Original comment by andre.ro...@gmail.com on 16 Sep 2009 at 12:10

GoogleCodeExporter commented 8 years ago
Thanks, tested and works here!

Original comment by twoelz on 16 Sep 2009 at 4:56