Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8005317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:11:40+00:00 2026-06-04T17:11:40+00:00

On the development platform upload works just fine, but when I deploy and test

  • 0

On the development platform upload works just fine, but when I deploy and test on the server upload fails with the following error

UnicodeEncodeError at /upload
'ascii' codec can't encode characters in position 25-30: ordinal not in range(128)

I use

django-ajax-uploader,

Django version: 1.3.1,

Python version: 2.6

I believe it happens about files with Roman, Russian, Chinese filenames.

Also found similar discussion at

Why do I get a ASCII encoding error with Unicode data in Python 2.4 but not in 2.7?

but about differences about Python versions.

I tried to set environment $LANG variable to en_US.utf8 etc. but it didn’t work.

Can anyone give me an advice or point a right way?

Thanks,

Sultan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T17:11:42+00:00Added an answer on June 4, 2026 at 5:11 pm

    See If you get a UnicodeEncodeError in the django docs.

    Personally, I prefer to rename uploaded files to ASCII charset to avoid other problems as well. Here is a link to an article with code that describes subclassing FileSystemStorage .

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting the following ODBC exception when I moved my development platform from
My normal development platform for PHP is Linux. I use a Red hat server
I want to build a shared library. GNU/Linux is the development and target platform.
Currently we are using GWT Platform with MVP architecture for our UI development. I
On development server, I am trying to write data to a single file using
I use Windows (7) OS as a development platform, running on a Mac /
I would like to know now days with the new PalmOS Web development platform
I am a web developer and my development platform is Mac. I have installed
I'm new to Visual Studio and Windows as a development platform, and I'm having
My team and I have found that documenting our project (a development platform w/

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.