In some older group post I found a nice django-based solution: Using a
customized ImageField instance:
class MyImageField(ImageField):
def __init__(self, *args, **kwargs):
super(MyImageField, self).__init__(*args, **kwargs)
def clean(self, *args, **kwargs):
data = super(M
Hi there,
tried upload of file containing file with umlaut in filename on a Ubuntu
server with de_DE.UTF8 locale setting. This server also produces a
UnicodeEncodeError error.
locale -a gives the following output:
C
en_AG
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
On Thu, Mar 1, 2012 at 6:16 PM, andi-h wrote:
> Would it help to change the locale settings on this Ubuntu server to
> de_DE.UTF-8, too?
don't know, but give it a shot.
also, what's the output of:
$ locale -a
Aljosa
--
You received this message because you are subscribed to the Google Groups
1) $ cat /etc/apache2/envvars
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
export APACHE_PID_FILE=/var/run/apache2.pid
. /etc/default/locale
export LANG
# comments have been stripped
2) $ cat /etc/default/locale
LANG="en_US.UTF-8"
$ sudo su - www-data
$ export
export HOME='/var
although it's possible that this is not the problem, could you post
additional details after you restart apache:
1) envvars content
$ cat /etc/apache2/envvars
2) env settings for apache/site user (usually www-data):
$ cat /etc/default/locale
$ sudo su - www-data
$ export
Aljosa
--
You received
Hi, as you suggested I changed that settings. In addition I made a new
MySQL database with an UTF8 collation and copied all the data to that
one.
No change, I still got the same problem :-(
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
T
if you're using apache please check /etc/apache2/envvars and make sure
that LANG is not C.
if you uncomment system locale it should work as expected.
## Uncomment the following line to use the system default locale instead:
. /etc/default/locale
Aljosa Mohorovic
--
You received this message bec
7 matches
Mail list logo