Just wanted to add that I have a workaround for the problem, as I'm doing:
new String(titleParam.getBytes(('ISO-8859-1')), 'UTF-8')But it is *just* a workaround, and I'd much rather have a clean solution :-) Guillaume On Tue, Sep 14, 2010 at 10:59, Guillaume Laforge <[email protected]> wrote: > Hi all, > > I'm wondering if someone has faced the following. > > I have a form for uploading a picture to be stored in the blobstore, > with a file input field. > But I also have text fields, so users can give a title to the picture > they're uploading. > > My form is something along the lines of: > > <form id="upload-form" action="/_ah/upload/xxxxxxxxx" > method="post" enctype="multipart/form-data" accept-charset="UTF-8"> > > I've even specified the accept-charset to be UTF-8, to deal with > things like accentuated characters, but it seems there's an encoding > problem somewhere, as the characters I get are interpreted as iso > latin (as far as I can see). > > However, everything is configured for UTF-8 everywhere: > - my html file is encoded in UTF-8 > - it specifies a meta attribute: <meta http-equiv="content-type" > content="text/html; charset=utf-8" /> > - jetty does send the page encoded as UTF-8 > > But... the input fields I get are showing weird characters as soon as > non-ASCII characters are used in my input field. > > Has anybody faced a problem like this when uploading files to the > blobstore with accompanying text fields? > > Thanks in advance for your lights on this. > > -- > Guillaume Laforge > Groovy Project Manager > Head of Groovy Development at SpringSource > http://www.springsource.com/g2one > -- Guillaume Laforge Groovy Project Manager Head of Groovy Development at SpringSource http://www.springsource.com/g2one -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" 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-java?hl=en.
