Re: [Trac] UnicodeEncodeError: 'ascii' codec can't encode character u'\u5230' in position 0: ordinal not in range(128)

2018-09-07 Thread RjOllos


On Friday, September 7, 2018 at 2:01:37 AM UTC-7, Mingxing Tian wrote:
>
>
>
> Jun Omae於 2018年9月6日星期四 UTC+8下午8時45分00秒寫道:
>>
>> On Thu, Sep 6, 2018 at 9:17 PM Mingxing Tian  
>> wrote: 
>> > 
>> > File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 647, in 
>> _dispatch_request 
>> >   dispatcher.dispatch(req) 
>> > File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 268, in 
>> dispatch 
>> >   iterable=chrome.use_chunked_encoding) 
>> > File "/usr/lib/python2.7/site-packages/trac/web/chrome.py", line 1134, 
>> in render_template 
>> >   stream |= self._filter_stream(req, method, filename, stream, data) 
>> > File "/usr/lib64/python2.7/site-packages/genshi/core.py", line 133, in 
>> __or__ 
>> >   return Stream(_ensure(function(self)), serializer=self.serializer) 
>> > File "/usr/lib/python2.7/site-packages/trac/web/chrome.py", line 1447, 
>> in inner 
>> >   data) 
>> > File "build/bdist.linux-x86_64/egg/workflow_actionbuttons/web_ui.py", 
>> line 41, in filter_stream 
>> >   buttons.append(manager.render_action_button(req, data['ticket'], 
>> action)) 
>> > File "build/bdist.linux-x86_64/egg/workflow_actionbuttons/api.py", line 
>> 72, in render_action_button 
>> >   supplemental_form = "> class='supplemental-form'>%s %s %s> style='width:95%%' rows='5' name='comment' placeholder='Enter your 
>> comment'>" % (action.title(), 
>> str(widgets), hints) 
>> > File "/usr/lib64/python2.7/site-packages/genshi/builder.py", line 107, 
>> in __str__ 
>> >   return str(self.generate()) 
>>
>> The same issue has been reported in https://trac-hacks.org/ticket/12118. 
>> Please add detail of the issue and how to reproduce to the ticket. 
>>
>>
>> -- 
>> Jun Omae  (大前 潤) 
>>
>
> I found the reason because it was caused by other plugins.
>
> *trac-WorkflowActionButtonsPlugin  *
>

That is the plugin referenced in the traceback and the issue #12118 that 
Jun directed you to.

- Ryan 

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


Re: [Trac] UnicodeEncodeError: 'ascii' codec can't encode character u'\u5230' in position 0: ordinal not in range(128)

2018-09-07 Thread Mingxing Tian


Jun Omae於 2018年9月6日星期四 UTC+8下午8時45分00秒寫道:
>
> On Thu, Sep 6, 2018 at 9:17 PM Mingxing Tian  > wrote: 
> > 
> > File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 647, in 
> _dispatch_request 
> >   dispatcher.dispatch(req) 
> > File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 268, in 
> dispatch 
> >   iterable=chrome.use_chunked_encoding) 
> > File "/usr/lib/python2.7/site-packages/trac/web/chrome.py", line 1134, 
> in render_template 
> >   stream |= self._filter_stream(req, method, filename, stream, data) 
> > File "/usr/lib64/python2.7/site-packages/genshi/core.py", line 133, in 
> __or__ 
> >   return Stream(_ensure(function(self)), serializer=self.serializer) 
> > File "/usr/lib/python2.7/site-packages/trac/web/chrome.py", line 1447, 
> in inner 
> >   data) 
> > File "build/bdist.linux-x86_64/egg/workflow_actionbuttons/web_ui.py", 
> line 41, in filter_stream 
> >   buttons.append(manager.render_action_button(req, data['ticket'], 
> action)) 
> > File "build/bdist.linux-x86_64/egg/workflow_actionbuttons/api.py", line 
> 72, in render_action_button 
> >   supplemental_form = " class='supplemental-form'>%s %s %s style='width:95%%' rows='5' name='comment' placeholder='Enter your 
> comment'>" % (action.title(), 
> str(widgets), hints) 
> > File "/usr/lib64/python2.7/site-packages/genshi/builder.py", line 107, 
> in __str__ 
> >   return str(self.generate()) 
>
> The same issue has been reported in https://trac-hacks.org/ticket/12118. 
> Please add detail of the issue and how to reproduce to the ticket. 
>
>
> -- 
> Jun Omae > (大前 潤) 
>

I found the reason because it was caused by other plugins.

*trac-WorkflowActionButtonsPlugin  *

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