On Tue, Mar 16, 2010 at 6:09 AM, Viktor Burdeinyi <silvon...@gmail.com>wrote:

>
> I'm working on django-project, that gathers the information from files
> and folders. The main idea of project is follow: settings.py contains
> the path to folder, afterwards the specific django view will create
> the tree of DB records with names of child folder and files of parent
> directory. The functionality I have completed, all work very well upon
> python server (python ... runserver).
>
> Next, I configure the Apach + WSGI on production server Ubuntu Server
> 9.10 for hosting project. At now the show begins. During the tree
> building UnicodeDecodeError exception was raised when the filename/
> foldername contains ciryllic symbols.


The default Apache setup on Ubuntu seems to include a LANG setting (C) that
makes Apache incapable of dealing with file names containing non-ASCII
characters. I've got:

export LANG='en_US.UTF-8'

in my /etc/apache2/envvars file that fixes this. You can use whatever
language code you like, but you probably want the encoding part to be UTF-8.

You may need to install the matching language pack for whatever language you
set before this will work.

Karen

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to