<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">accept-charset: doesn't help</span><br><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">I read that there must be a filter in the servlet pipeline that sets the encoding:</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">request.setCharacterEncoding("UTF-8");</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">But it MUST be set before ANY request.getParameter(xyz)...</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><font face="arial, sans-serif">I tried to set in my resource, but that didn't help. So Yanel (or the Servlet Engine itself) reads out parameters.</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">An option would be:</font></div><div><font face="arial, sans-serif">- Create a new filter servlet</font></div><div><font face="arial, sans-serif">- Configure it to be the very first servlet in the whole pipeline (web.xml)</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">... just an idea ...</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Cheers, Bas</font></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 24, 2014 at 4:43 PM, Michael Wechner <span dir="ltr"><<a href="mailto:michael.wechner@wyona.com" target="_blank">michael.wechner@wyona.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hi Balz<br>
      <br>
      Can you give it a try by using accept-charset<br>
      <br>
      <a href="http://www.w3schools.com/tags/att_form_accept_charset.asp" target="_blank">http://www.w3schools.com/tags/att_form_accept_charset.asp</a><br>
      <br>
      I have a similar problem at the moment<br>
      <br>
      <a href="http://www.musealia.ch/de/index.html" target="_blank">http://www.musealia.ch/de/index.html</a><br>
      <br>
      whereas it might also be a problem of<br>
      <br>
src/webapp/src/java/org/wyona/yanel/servlet/communication/YanelFilter.java<br>
      <br>
      I will also have a closer look at it.<br>
      <br>
      Best wishes<br>
      <br>
      Michael<br>
      <br>
      Am 24.03.14 16:37, schrieb basZero:<br>
    </div><div><div class="h5">
    <blockquote type="cite">
      <pre>Hi,

did somebody ever use a form submitting text fields as well as file input
fields (images) ?
I don't get it to work with UTF-8 text fields, means: special characters
get scrambled and can not be retrieved correctly on the server side (java).

<form name="form" method="post" enctype="multipart/form-data">
  <input name="title" type="text"/>
  <input type="file" name="image"></input>
</form>

So if you enter "Liebe GrĂ¼sse" into the title field, you get something
scrambled on the server side.

If you know how to solve it within Yanel, please share your code :-) Thanks!
Cheers, Bas

</pre>
      <br>
      <fieldset></fieldset>
      <br>
    </blockquote>
    <br>
  </div></div></div>

<br>--<br>
Yanel-development mailing list <a href="mailto:Yanel-development@wyona.com">Yanel-development@wyona.com</a><br>
<a href="http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development" target="_blank">http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development</a><br></blockquote></div><br></div>