R
Robert Bowen
I am using Struts' FormFile class to upload a text file from a
multipart form.
Everything works fine in Windoze but now that we have installed it in
Linux we are getting an error reading the text file, it says it can't
read it because it is in UTF-8.
We are working in Spanish and as such have characters with accents,
etc. Do I have to tell Tomcat (in the web.xml with the
SetCharacterEncodingFilter filter) to treat the file as ISO-8859-1?
I read that this filter is useful when you have a multipart form with
fields of both type File and normal text fields, so that the normal
text fields are encoded correctly, but that it doesn't affect File
fields. And that in order to upload the file correctly I would need
something like the Jakarta Commons upload utility class. But I imagine
the Struts FormFile uses commons anyway, no?
I've never had to do this for any other application but then again,
anything is possible. Any help much appreciated, this problem is
driving me NUTS!
Thanks,
syg
multipart form.
Everything works fine in Windoze but now that we have installed it in
Linux we are getting an error reading the text file, it says it can't
read it because it is in UTF-8.
We are working in Spanish and as such have characters with accents,
etc. Do I have to tell Tomcat (in the web.xml with the
SetCharacterEncodingFilter filter) to treat the file as ISO-8859-1?
I read that this filter is useful when you have a multipart form with
fields of both type File and normal text fields, so that the normal
text fields are encoded correctly, but that it doesn't affect File
fields. And that in order to upload the file correctly I would need
something like the Jakarta Commons upload utility class. But I imagine
the Struts FormFile uses commons anyway, no?
I've never had to do this for any other application but then again,
anything is possible. Any help much appreciated, this problem is
driving me NUTS!
Thanks,
syg