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

  • SEARCH
  • Home
  • 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 7248627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:09:50+00:00 2026-05-28T22:09:50+00:00

I am using django-nonrel on the google-app-engine. When I’m posting a foreign character, in

  • 0

I am using django-nonrel on the google-app-engine.

When I’m posting a foreign character,

in my case Korean Character, with a multipart/form-data it is breaking.

<form method="post" enctype="multipart/form-data" action=".">

For example, if I post a string ‘한글’

it is recorded in my database as a string ‘7ZWc6riA’.

From my research this is the common case in jsp,

and in Java it’s solve as below:

String name = multipartRequest.getParameter("name");
name = new String(name.getBytes("8859_1"),"utf-8");

However, I was unable to find the equivalent in Django,

nor not quite sure if I can solve my problem with the same logic.

Any help/clue will be appreciated.

  • 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-05-28T22:09:51+00:00Added an answer on May 28, 2026 at 10:09 pm

    I found an open issue for this problem.

    Issue 2749: Blobstore handler breaking data encoding
    http://code.google.com/p/googleappengine/issues/detail?id=2749

    You can find several different options to go around this bug in the link above.

    Personally, as a Django-nonrel user, I’d go with a solution shown below:

    import logging
    import quopri
    log = logging.getLogger(__name__)
    
        class BlobRedirectFixMiddleware(object):
            def process_request(self, request):
                if request.method == 'POST' and 'HTTP_X_APPENGINE_BLOBUPLOAD' in request.META and request.META['HTTP_X_APPENGINE_BLOBUPLOAD'] == 'true':
                    request.POST = request.POST.copy()
                    log.info('POST before decoding: %s' % request.POST)
                    for key in request.POST:
                        if key.startswith('_') or key == u'csrfmiddlewaretoken':
                            continue
                        value = request.POST[key]
                        if isinstance(value,(str, unicode)):
                            request.POST[key] = unicode(quopri.decodestring(value), 'iso_8859-2')
                    log.info('POST after decoding: %s' % request.POST) 
                return None
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the Django nonrel project on a google app engine project running locally
I'm using Python 2.7 and django-nonrel for running Django projects on Google app engine.
I'm using Django-nonrel on Google App Engine and have the following models (they are
Does Django signals work on google app engine ? I am using django-nonrel. Thanks
When using Google App Engine with Django-nonrel, is there any way to take advantage
I am trying to build an example app in Google App Engine using django-nonrel.
I am a newbie with a problem working with Django-nonrel on Google App Engine.
Using Django templates in Google App Engine (on Python), is it possible to compare
Running Django Nonrel, with Google App Engine 2.6.0 and Python 2.7, I'm getting this
I'm using Django 1.1 on Google App Engine through use_library . No Django GAE

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.