Announcement Announcement Module
Collapse
No announcement yet.
HTML entities problem for I18n Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • HTML entities problem for I18n

    Hi everyone,

    I'm developping an application with spring 2,5. I use some application-resources-property files for I18n. So in french and german I got some accents in the sentences. I have changed those in my property files to html entities as they were not always well displayed (in some views returned by ajax functions).

    Now:
    using spring:message I got those characters well displayed.
    but as soon as it s displayed by a form:errors it displays the html entity code instead of the character.

    I'm stuck with this and I'have no idea how to solve it. what can I do?
    Thanks for your help

  • #2
    up because I still have no solution

    Comment


    • #3
      Is your problem only on an error message but not the entirely page?

      Comment


      • #4
        in <spring:message code="..." /> an html entity gives me the expected character
        in <form:errors path="..." /> an html entity is printed.

        So if I have an &eacute; () for example in on of my ApplicationResource_LOCALE.properties
        if it s called in a spring:message I'll see a "" character
        if it s called in a form:error i ll see printed "&eacute;"

        Comment


        • #5
          Since I never use the Spring message tag (and haven't seen the need for it), I can't comment on it. Try to use the fmt tag of JSTL and see what you get. The site listed on my signature is multi-language, btw.

          Comment


          • #6
            yeah but actually that s the "errors" tag that have a problem

            Comment

            Working...
            X