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 6755457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:24:08+00:00 2026-05-26T13:24:08+00:00

I am sending encoded post data to appengine project.But appengine shows blank char in

  • 0

I am sending encoded post data to appengine project.But appengine shows blank char in response.

I am sending this form data :
mdata=I%FD%FD%FE%DE%DE%E7%E7%C7%D6%F6%F6%D6%D6%0A%0A

and my appengine response code is :

request_data = self.request.get('mdata')
mailhtmldata = urllib.unquote_plus(request_data)

And repr(request_data) and repr(mailhtmldata) is u'I\n\n' .Still unicode chars like “İşÇöÖü” are blank.I am sure about my sender is sending mdata=I%FD%FD%FE%DE%DE%E7%E7%C7%D6%F6%F6%D6%D6%0A%0A.i tested.Where is other chars in appengine ?

Thanks for all help.

Sorry for my bad english

Update :

This is my sender function

def mailSend():
    values = urllib.urlencode({'mailam' : 'deneme@hotmail.com', 'mfromname' :'Deneme Kisisi', 'mkonu' : 'This is Subject', 'mdata' : 'IıışŞşÖÖççç'})
    headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"}
    conn = httplib.HTTPConnection("xxxxxx.appspot.com")
    conn.request("POST", "/gondergitsin", values, headers)
    response = conn.getresponse()
    data = response.read()
    print data
    conn.close()

And this is the appengine code:

class mTransfer(webapp.RequestHandler):
    def post(self):
        mailhtmldata = urllib.unquote_plus(self.request.get('mdata'))
        x2adresx = urllib.unquote(self.request.get('mailam'))
        x2gonderenx = urllib.unquote(self.request.get('mfromname'))
        x2gondid = ''.join(random.choice(string.ascii_lowercase + string.digits) for x in range(12))
        anagonderen = "Deneme <info@koorsender.appspotmail.com>"
        mailsubjdata = urllib.unquote(self.request.get('mkonu'))
        message = mail.EmailMessage(sender=anagonderen, subject=mailsubjdata)
        message.to = x2adresx
        message.body = mailhtmldata
        message.html = mailhtmldata
        message.send()
        self.response.out.write("OK")

I tried but still i can’t found a solution

Update 2: If you are using unicode charsets you decode it to your charset and after that you can encode it to utf-8.

  • 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-26T13:24:09+00:00Added an answer on May 26, 2026 at 1:24 pm

    What you are sending appears to be the result of url-encoding some characters expressed in cp1254 (Windows Turkish) encoding (or the very similar ISO-8859-9 encoding). Have you told “appengine” what encoding you are using?

    We need a bit more information about “Still unicode chars like “İşÇöÖü” are blank”. Blank when you look at them how? Instead of

    htmldata = urllib.unquote_plus(self.request.get('mdata'))

    do this:

    request_data = self.request.get('mdata')
    htmldata = urllib.unquote_plus(request_data)
    

    and edit your question to show the results of repr(request_data) and repr(htmldata)

    Update You say that self.request.get('mdata') is returning u'I\n\n' … the non-ASCII characters in your data are not coming back as blank; they are being removed.

    Somebody’s code is stripping out non-ASCII characters. Something like your_input.decode(some_encoding, 'ignore') with some_encoding set to ascii or UTF-8.

    Show us the code where you “told to appengine what encoding i am using(iso-8859-9)”.

    Update 2 in response to posting of sending code and this comment “I am adding # -*- coding: iso-8859-9 -*- to top”.

    Putting the “coding” thing at the top of your source file is telling the Python compiler the encoding of the remainder of your source file. It has nothing to do with the encoding of your data. You could remove the # coding thing and instead of writing 'mdata' : 'IıışŞşÖÖççç' you could write 'mdata' : 'I\xFD\xFD etc etc' and get the same string of bytes sent to the server with the same effect. You have NOT told appengine what encoding you are using.

    Instead of

    "Content-type": "application/x-www-form-urlencoded",

    I suggest that you try this:

    "Content-Type": "application/x-www-form-urlencoded; charset:ISO-8859-9;"

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

Sidebar

Related Questions

When sending data via POST or GET with jQuery you use for format {
I'm trying to get page data using cURL and sending variables via POST. Here's
I am using JQuery 1.5.1. Sending JSON data (encoded using https://github.com/douglascrockford/JSON-js ) to the
I am sending a post containing text, numbers and data. The numbers and data
If I'm sending data from an anchor attribute: <a id=123>foo</a> With no <form> around
sending mail along with embedded image using asp.net I have already used following but
When sending data over HTTPS, I know the content is encrypted, however I hear
M sending the parameters from the jsp page, the code is <s:url id=url action=searchAction>
If you are sending work/progress reports to the project lead on a daily or
I'm sending mail from my C# Application, using the SmtpClient. Works great, but I

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.