login community faq

Hello everyone!

I can't upload files with non ascii filenames in my webfaction account. I'm using django 1.3. I get a 500 error.

I read I have to set LANG and LC_ALL for apache, but I couldn't make it work. Any clues?

asked Nov 18 '11 at 13:22

Iv%C3%A1n's gravatar image

Iván
31


You need to set the variables in your apache2/bin/start script, on the same line that begins with "LD_LIBRARY_PATH".

Here's an example:

1
LANG='es_ES.UTF-8' LC_ALL='es_ES.UTF-8' LD_LIBRARY_PATH=/home/username/webapps/django/apache2/lib /home/username/webapps/django/apache2/bin/httpd.worker -f /home/username/webapps/django/apache2/conf/httpd.conf -k start

Restart your Apache after making that change.

Hope that helps!

answered Nov 18 '11 at 19:40

seanf's gravatar image

seanf ♦♦
59491220

Thanks, that was it. I don't know why I couldn't make it work before, I've tried that but with a different locale (en_US) and without the '' but I might had done something wrong. Thanks a lot!

(Nov 22 '11 at 09:32) Iván Iv%C3%A1n's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×652
×20
×18
×3

Asked: Nov 18 '11 at 13:22

Seen: 709 times

Last updated: Nov 22 '11 at 09:32

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited