Thank you Jesaja! You saved my day! On Saturday, February 9, 2013 at 12:15:46 AM UTC+8, Jesaja Everling wrote: > > Hi Laurent, > > I definitely remember having the same problem with Supervisor. I can't > remember exactly what I changed at the moment, but It might have been > this: > > [supervisord] > environment=LC_ALL='en_US.UTF-8',LANG='en_US.UTF-8' > > This is in my /etc/supervisor/supervisord.conf. If this is in there by > default, I changed something else... ;) > > Best Regards, > > Jesaja Everling > > > On Fri, Feb 8, 2013 at 5:09 PM, Laurent DAVERIO <ldav...@gmail.com > <javascript:>> wrote: > > Hello list, > > > > I have a very vague question about Supervisord. > > > > Today, I managed to solve (or work around) an annoying Ascii encoding > > problem that kept coming up several times in a Pylons app of mine. > > > > The problem was occurring in a method trying to open files with > > "special" characters in their filenames, the said filenames also being > > stored in PostgreSQL. Although I thought I had handled everything > > properly (UTF-8 strings cast to Unicode, etc.), the problem was still > there. > > > > Turns out it only occurs when Pylons is launched via Supervisord. If I > > use Daemontools instead, or just run "paster serve" from the command > > line, the problem goes away. > > > > Now, I vaguely remember that my Zope websites wouldn't run properly when > > I tried to switch from Daemontools to Supervisord, that's why I had > > stayed with the former. It was years ago, and I never investigated the > > problem. > > > > So, maybe, I should ask the question in a Supervisord-related mailing > > list instead of here. But as it may be of interest to fellow Pyloners > > (and Pyloneresses, as well as Pyramiders, Pyramideresses, etc.) and I > > haven't found anything via Google, here it is : > > > > Has anyone noticed similar encoding problems with Supervisord? I suspect > > it has something to do with the way it handles the (encoding of the) > > stdin/stdout/stderr of its child processes. > > > > And it seems to have a definite incidence on all Python apps when run by > > supervisord. > > > > Thanks in advance, > > > > > > Laurent DAVERIO. > > > > > > -- > > You received this message because you are subscribed to the Google > Groups "pylons-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to pylons-discus...@googlegroups.com <javascript:>. > > To post to this group, send email to pylons-...@googlegroups.com > <javascript:>. > > Visit this group at http://groups.google.com/group/pylons-discuss?hl=en. > > > For more options, visit https://groups.google.com/groups/opt_out. > > > > >
-- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@googlegroups.com. To post to this group, send email to pylons-discuss@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/8e1a6f1b-b17d-4502-bca0-65f01bbb68ae%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.