Im a little curious about this. I have an file stream which is delivered(actually a html file) to me, I then write the file as a temporary file:


                                 String path = ((WebRequest) page.getRequest())



                                 File dir = new File(path);

                                 File file = File.createTempFile("rep", extension, dir);

                                 Files.writeTo(file, new ByteArrayInputStream(report));

                                 url = "" + file.getName();


Then include it :


             add(new Include("result", url));


However the html file contains both the html tag and body tag, this does not give me give any direct problems. However I in my wicket html template file specify:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

but the included html specify:

<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1">

If I open the delivered file in an text editor it tells med that it’s an ANSI encoding. Can I somehow make the Files.writeTo use UTF-8 encoding, and will it still show up wrong because of the iso-8859-1 specified in the included file?


Currently it looks to me like it’s the include that properly corrups the char’s, im guessing its because file encoding is specified to ANSI but we have special chars like æ,ø,å.



Hoping for some help…


Regards Nino

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
Wicket-user mailing list

Reply via email to