For some reason, I get weird input for Cyrillic characters in GAE.
In the local environment, everything works fine, I get what was in the input field, with self.request.get('') . But on Appspot I get "1mxt1czq0snfzq ==" or "0ylqtdgb0yi =", for example, instead of Russian words.
in.py
!/usr/bin/env python -*- coding: utf-8 -*- title = self.request.get('title')
in .html
meta charset="utf-8" input type="text" name="title" id="title"
I am stuck.
EDIT: Yes, this is Base64, you're right. But why does GAE use it? And where to change it? Why are there different behaviors in the local and in the Apps application?
In the same form, I am trying to get a file in BlobHandler
<form class="form-horizontal" action="{{ upload_url }}" method="POST" enctype="multipart/form-data"> <div class="control-group"> <label class="control-label" for="title">Title</label> <div class="controls"> <input type="text" name="title" id="title"> </div> </div> <div class="control-group"> <label class="control-label" for="file">Load image</label> <div class="controls"> <input type="file" name="file" id="file" accept='image/*' required="required"> </div> </div>
EDIT2: Yes. https://code.google.com/p/googleappengine/issues/detail?id=2749
Sounds like a bug in GAE with BlobHandler.
Solution: accept-charset = "utf-8" on the form, trying this later.
source share