-
1. Re: gpd.xml and utf8
koen.aers Sep 10, 2007 6:39 AM (in response to lmichenaud)It has been reported before and AFAIR there is also a JIRA issue for it. But I am on Linux and I have not been able to reproduce the issue :-(
-
2. Re: gpd.xml and utf8
lmichenaud Sep 10, 2007 8:09 AM (in response to lmichenaud)Maybe you should not specify the encoding in
the xml header.
I have looked at the designer source code and i have seen
several things like that :buffer.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); buffer.append("\n\n<root-container />");
or maybe you could try to do something like that :buffer.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); buffer.append("\n\n<root-container />"); return new ByteArrayInputStream( new String(buffer.toString().getBytes(),"UTF-8");
-
3. Re: gpd.xml and utf8
jeffj55374 Sep 10, 2007 10:25 AM (in response to lmichenaud)Hi,
I believe the second code suggesting is better. We also do mixed Windows / Unix / Linux development and use UTF-8 encoded files. Java on Windows does not default to UTF-8 but some Windows specific code page so we always have to explicitly specify the encoding of our files and byte streams so that we get identical behavior across platforms.return new ByteArrayInputStream( new String(buffer.toString().getBytes(),"UTF-8");
Thanks,
Jeff -
4. Re: gpd.xml and utf8
koen.aers Sep 10, 2007 10:35 AM (in response to lmichenaud)Thanks for the suggestion guys!
I have looked up the JIRA issue (http://jira.jboss.com/jira/browse/GPD-98) and added a reference to this forum post. It will soon be fixed.
Regards,
Koen