Django File System Encoding


New Member
Hello everyone,
I've been trying to solve this problem for weeks now but i just can't seem to get it to work.
My website works fine till someone uploads a file that has non-ascii characters in it, where it returns the following error:
"UnicodeEncodeError 'ascii' codec can't encode characters in position"
the fix seems to be to change environment variables but i don't know how to change openlitespeed variables as all the solutions i found are for apache or nginx.

when I follow the following tutorial ""
I get "fs_encoding: ascii" when it's run from inside django. but if i run sys.getfilesystemencoding() from python shell i get 'utf-8'


It probably not LiteSpeed related, I saw something similar before, can you try to add encoding to DB/SQL config file directly?