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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:16:35+00:00 2026-06-06T12:16:35+00:00

When I submit the following text in my textarea box on the windows GAE

  • 0

When I submit the following text in my textarea box on the windows GAE launcher at http://localhost:8080 it displays fine.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus a dolor eget diam
condimentum varius. Proin malesuada dictum ante, sed commodo purus vestibulum in. 
Sed nibh dui, volutpat eu porta eu, molestie ut lacus. Vivamus iaculis urna ut tellus 
blandit eu at nisl. Fusce eros libero, aliquam vitae hendrerit vitae, posuere ac diam. 
Vivamus sagittis, felis in imperdiet pellentesque, eros nibh porttitor nisi, id      
tristique leo libero a ligula. In in elit et velit auctor lacinia eleifend cursus mauris. Mauris 
pellentesque lorem et augue placerat ultrices. Nam sed quam nisl, eget elementum felis. 
Integer sapien ipsum, aliquet quis viverra quis, adipiscing eget sapien. Nam consequat 
lacinia enim, id viverra nisl molestie feugiat.

When my code is deployed on GAE after I hit the submit button it displays like this:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus a dolor eg=
et diam condimentum varius. Proin malesuada dictum ante, sed commodo purus =
vestibulum in. Sed nibh dui, volutpat eu porta eu, molestie ut lacus. Vivam=
us iaculis urna ut tellus tempor blandit eu at nisl. Fusce eros libero, ali=
quam vitae hendrerit vitae, posuere ac diam. Vivamus sagittis, felis in imp=
erdiet pellentesque, eros nibh porttitor nisi, id tristique leo libero a li=
gula. In in elit et velit auctor lacinia eleifend cursus mauris. Mauris pel=
lentesque lorem et augue placerat ultrices. Nam sed quam nisl, eget element=
um felis. Integer sapien ipsum, aliquet quis viverra quis, adipiscing eget =
sapien. Nam consequat lacinia enim, id viverra nisl molestie feugiat.

Implementation Description below:

I am using the jinja2 engine. I have autescape = false:

jinja_env = jinja2.Environment(loader = jinja2.FileSystemLoader(template_dir), autoescape = False)

I get the content from a textarea element. Here is how it is set in my template:

  <label>
    <div>Information</div>
    <textarea name="information">{{r.information}}</textarea>
  </label>

I retrieve the string using:

information = self.request.get('information')

I committ the string to the data store

r.information = information
r.put()

When displaying it again for editing I use the same template code:

  <label>
    <div>Information</div>
    <textarea name="information">{{r.information}}</textarea>
  </label>

Everything works great locally. But when I deploy it to the google app engine I am getting some strange results. Where do those = signs come from I wonder?

EDIT:
For clarification it is putting =CRLF at the end of every line.

*EDIT 2: *
Here is the code from comment 21 of the bug:

def from_fieldstorage(cls, fs):
    """
    Create a dict from a cgi.FieldStorage instance
    """
    obj = cls()
    if fs.list:
        # fs.list can be None when there's nothing to parse
        for field in fs.list:
            if field.filename:
                obj.add(field.name, field)
            else:

                # first, set a common charset to utf-8.
                common_charset = 'utf-8'

                # second, check Content-Transfer-Encoding and decode
                # the value appropriately
                field_value = field.value
                transfer_encoding = field.headers.get(
                  'Content-Transfer-Encoding', None)

                if transfer_encoding == 'base64':
                    field_value = base64.b64decode(field_value)

                if transfer_encoding == 'quoted-printable':
                    field_value = quopri.decodestring(field_value)

                if field.type_options.has_key('charset') and \
                      field.type_options['charset'] != common_charset:
                    # decode with a charset specified in each
                    # multipart, and then encode it again with a
                    # charset specified in top level FieldStorage
                    field_value = field_value.decode(
                      field.type_options['charset']).encode(common_charset)

            # TODO: Should we take care of field.name here?
            obj.add(field.name, field_value)

    return obj

multidict.MultiDict.from_fieldstorage = classmethod(from_fieldstorage)
  • 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-06T12:16:36+00:00Added an answer on June 6, 2026 at 12:16 pm

    You might be falling foul of this bug
    The workaround in comment 21 has worked for me in the past, and recent comments indicate it still does.

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

Sidebar

Related Questions

I have created one html form with following fields: Name (Text Box) Email (Text
I'm using the following code to post the content of a text box to
The following code does not submit the input values: $('.button').live('click', function() { var date
The following code is being used to disable a Submit button once it has
The following is some code for making sure people can't submit if the value
I have the following code: $('.tagform').submit(function() { $('#tagsubmit-???').toggle('1000'); return false; }); And I have
I am using the following code to submit different values var evalue= 'color:#d32;font-size:12px;'; jQuery.ajax({
Please submit only one zip file .Your zip file should contain the following files:
i want to submit a form using Ext.Direct and iam following all the guidelines
I have the following Java code: final Future future = exeService.submit( new Runnable() {

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.