Hi Niels,
Thanks for your answer,
Niels van Kampenhout wrote:
Hi Slobodan,
Slobodan Bogdanovic wrote:
I have problem with euro sign. When I save document with euro sign
entered by keyboard ( ctrl+alt+e or alt+0128 ) in xinha editor, I see
"â?¬" in xml file from repository. I see the same sign the output of
jsp page and it is displayed correctly in xinha editor when I reopen
document. We are using hippo-repository-adapter to get xml documents
from repository.
Is there any solution to display this sign correctly on JSP page?
How do you handle the XML content in your JSP page? And what application
do you use to view the XML file in the repository? A browser like
Firefox should display it correctly, but e.g. WebdavPilot handles
encoding incorrectly and could show garbage like "â?¬" in case of
characters like the euro sign.
The CMS stores all content as utf8 in the repository so there should not
be a problem. I know of cases in which Chinese content is stored and
displayed so my gut feeling the problem lies in the JSP page. Not sure
though ;-)
I am using Betwixt for mapping XML content to bean and JSTL (c:out) to
show content on JSP page. I used WebdavPilot to view xml file from the
repository, and it is true, it shows garbage. I also tried to see
content using firefox and it looks fine, so the conclusion is that
repository content is ok and I found the problem. It was ISO-8859-1
encoding on JSP pages. When I changed it to UTF-8 everything worked
properly.
Thanks,
Best regards,
Slobodan
Regards
Niels
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
********************************************
Hippocms-dev: Hippo CMS development public mailinglist