Chris, I really appreciate the information, but I would like to hear from Google about this bug.
Q1. Are you going to fix this bug in near future? Q2. Do you have any suggested way to work-around this bug, which won't cause compatibility issue in future when you fix this bug? Satoshi On Nov 13, 10:38 am, Chris Copeland <[email protected]> wrote: > In Python the text is encoded as quoted printable (I think). > > See issue > #3761<http://code.google.com/p/googleappengine/issues/detail?id=3761>and > Stack > Overflow > question<http://stackoverflow.com/questions/3624226/encoding-problem-in-app-en...>. > > I've worked around it by decoding with quopri if the post is coming through > the blob uploader. > > > > On Sat, Nov 13, 2010 at 9:30 AM, Satoshi <[email protected]> wrote: > > I also wrote an upload code in Objective-C, explicitly specifying the > > "Content-Type: text/plain; charset=UTF-8", > > but got the same result as HTML form sample above. > > > "日本語" becomes "5pel5pys6Kqe" > > > Satoshi > > > On Nov 13, 7:01 am, Satoshi <[email protected]> wrote: > > > I wrote a test code, and verified this bug (it happens in Japanese as > > > well). > > > > Here is the form: > > > > <form id='form_upload' action="$(_upload_url)" method="POST" > > > enctype="multipart/form-data"> > > > <div class='dialog_field'> > > > <div class='field_name'>File:</div> > > > <input type='file' name='file' /> > > > <input type='hidden' name='alt' value='main'/> > > > </div> > > > <div class='dialog_field'> > > > <div class='field_name'>Description</div> > > > <input type='text' name='desc' /> > > > </div> > > > </form> > > > > Satoshi > > > > On Nov 12, 11:52 am, "Ikai Lan (Google)" > > > <[email protected]<ikai.l%[email protected]> > > > > wrote: > > > > > Do you guys have any sample code? I'm testing this and seeing that the > > local > > > > dev server gives me some strange characters (I'm using Java). What does > > the > > > > form look like? How are you reading the input from the form submission? > > > > > -- > > > > Ikai Lan > > > > Developer Programs Engineer, Google App Engine > > > > Blogger:http://googleappengine.blogspot.com > > > > Reddit:http://www.reddit.com/r/appengine > > > > Twitter:http://twitter.com/app_engine > > > > > On Fri, Nov 12, 2010 at 5:09 AM, msmart <[email protected] > > >wrote: > > > > > > I ran into the same issue. > > > > > > Has anyone found the corresponding issue in the bug tracker (or a > > nice > > > > > workaround)? > > > > > > Michael. > > > > > > On 26 Okt., 09:28, Kenneth <[email protected]> wrote: > > > > > > This is a pretty shocking bug (or lack of documentation?) from > > > > > > Google. There doesn't appear to be a consistent way to decode the > > > > > > post results that come from the BlobstoreUploadHandler. There was > > a > > > > > > bug in the issues list for this but I can't find it. I should put > > in > > > > > > another one really but there doesn't seem to be any point. > > > > > > > What I do is when the user hits the submit button I send the form > > > > > > results via an ajax request and once that returns I submit the form > > to > > > > > > do the file upload. > > > > > > > Pretty sad you have to do that and it means you're requiring > > > > > > javascript for something that really shouldn't need it. > > > > > > > On Oct 25, 10:49 am, Agustin Horischnik <[email protected]> wrote: > > > > > > > > Hey, no luck with this? Did you solve this at all? > > > > > > > > On Aug 31, 12:40 pm, Agustin Horischnik <[email protected]> > > wrote: > > > > > > > > > I think I'm having the same issue... > > > > > > > > > I have a multi-part form posting to ablobstoreuploadhandler. > > > > > > > > There's four form fields: > > > > > > > > > 2 input type=file > > > > > > > > 1 input type=text > > > > > > > > 1 textarea > > > > > > > > > Those map to... > > > > > > > > > 2blobstore.BlobReferenceProperty > > > > > > > > 1 StringProperty > > > > > > > > 1 TextProperty > > > > > > > > > ... respectively, on my model class. > > > > > > > > > And the problem is... when I submit an input string such as "á > > é í ó > > > > > ú > > > > > > > > and ñ", I get: "IuEg6SDtIPMg+iBhbmQg8SI=", both on the > > StringProperty > > > > > > > > and TextProperty. > > > > > > > > At least, this is what I see on the Data viewer or when I > > output on > > > > > > > > the app. > > > > > > > > > Any workarounds you can think of? Anybody else is having this > > > > > problem? > > > > > > > > > On Aug 3, 3:54 pm, ekampf <[email protected]> wrote: > > > > > > > > > > yep.. > > > > > > > > > It doesnt happend on the local dev server... its definately > > > > > something > > > > > > > > > undocumented happening on AppEngine > > > > > > > > > > On Aug 3, 10:54 am, alon <[email protected]> wrote: > > > > > > > > > > > it outputs as abase64string? im guessing the post is > > multi-part > > > > > post > > > > > > > > > > right? > > > > > > > > > > > On Aug 3, 10:39 am, ekampf <[email protected]> wrote: > > > > > > > > > > > > This happens when text fields are sent via POST and go > > through > > > > > the > > > > > > > > > > >Blobstoreuploadhandler. > > > > > > > > > > > When English text is used I get the text. > > > > > > > > > > > When Hebrew is used I get abase64string... > > > > > > > > > > > > I'm not looking at the datastore dashboard. I'm looking > > at the > > > > > actual > > > > > > > > > > > POST data (via logging) > > > > > > > > > > > > On Aug 3, 10:18 am, alon <[email protected]> wrote: > > > > > > > > > > > > > Does that happen everytime on theblobstoreonly api? or > > > > > regular text - > > > > > > > > > > > > > > datastore? > > > > > > > > > > > > > One more thing, there is a huge difference on how the > > text is > > > > > being > > > > > > > > > > > > displayed on the datastore dashboard. are you sure its > > being > > > > > saved as > > > > > > > > > > > >base64? the pageencodingfor the production datastore > > browser > > > > > is > > > > > > > > > > > > massed up and cant display hebrew correctly in oppose > > to the > > > > > local dev > > > > > > > > > > > > version which has utf8encodingdisplay. > > > > > > > > > > > > > On Jul 23, 2:09 pm, ekampf <[email protected]> wrote: > > > > > > > > > > > > > > I have a form with a file input and a text input > > field. > > > > > > > > > > > > > When users type Hebrew text I get aBase64encoded > > string on > > > > > the > > > > > > > > > > > > > server. When typing English I get a nonBase64string. > > > > > > > > > > > > > On the development server I get a regular Unicode > > string > > > > > (what I'd > > > > > > > > > > > > > expect) > > > > > > > > > > > > > > Cant find any mentions of this in the docs. > > > > > > > > > > > > > What the behavior I should expect on production? Is > > this a > > > > > bug? > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > Groups > > > > > "Google App Engine" group. > > > > > To post to this group, send email to > > [email protected]. > > > > > To unsubscribe from this group, send email to > > > > > [email protected]<google-appengine%2Bunsubscrib > > > > > [email protected]><google-appengine%2Bunsubscrib > > [email protected]> > > > > > . > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/google-appengine?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<google-appengine%2Bunsubscrib > > [email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
