<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">see<br>
<br>
<pre wrap="">src/webapp/src/java/org/wyona/yanel/servlet/communication/YanelFilter.java
which is used before the YanelServlet in the case of a multipart request
apache-tomcat-7.0.25/webapps/yanel/WEB-INF/web.xml
I could imagine that the problems is located somewhere inside this filter.
HTH
Michael
</pre>
<br>
<br>
Am 24.03.14 16:46, schrieb basZero:<br>
</div>
<blockquote
cite="mid:CAOXzDSHCoQhZOQHzwSFcFpLNsLaFiJT0_xn1sj4ooZmevj9CQw@mail.gmail.com"
type="cite">
<pre wrap="">accept-charset: doesn't help
I read that there must be a filter in the servlet pipeline that sets the
encoding:
request.setCharacterEncoding("UTF-8");
But it MUST be set before ANY request.getParameter(xyz)...
I tried to set in my resource, but that didn't help. So Yanel (or the
Servlet Engine itself) reads out parameters.
An option would be:
- Create a new filter servlet
- Configure it to be the very first servlet in the whole pipeline (web.xml)
... just an idea ...
Cheers, Bas
On Mon, Mar 24, 2014 at 4:43 PM, Michael Wechner
<a class="moz-txt-link-rfc2396E" href="mailto:michael.wechner@wyona.com"><michael.wechner@wyona.com></a>wrote:
</pre>
<blockquote type="cite">
<pre wrap=""> Hi Balz
Can you give it a try by using accept-charset
<a class="moz-txt-link-freetext" href="http://www.w3schools.com/tags/att_form_accept_charset.asp">http://www.w3schools.com/tags/att_form_accept_charset.asp</a>
I have a similar problem at the moment
<a class="moz-txt-link-freetext" href="http://www.musealia.ch/de/index.html">http://www.musealia.ch/de/index.html</a>
whereas it might also be a problem of
src/webapp/src/java/org/wyona/yanel/servlet/communication/YanelFilter.java
I will also have a closer look at it.
Best wishes
Michael
Am 24.03.14 16:37, schrieb basZero:
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
--
Yanel-development mailing list <a class="moz-txt-link-abbreviated" href="mailto:Yanel-development@wyona.com">Yanel-development@wyona.com</a>
<a class="moz-txt-link-freetext" href="http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development">http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</body>
</html>