Results 1 to 9 of 9

Thread: Umlaut Problem with InternalHttpServletResponse

  1. #1
    Join Date
    May 2007
    Location
    Munich
    Posts
    25

    Default Umlaut Problem with InternalHttpServletResponse

    Hi,
    I use the org.springmodules.xt.ajax.component.dynamic.JSPCom ponent to re-fill a JSP dynamically within an Ajax-request. If the new contents contain umlauts, they are not displayed correctly (means they are rendered as "?"). I think this might be because the InternalHttpServletResponse does not allow to set the character encoding to "UTF-8" (=>UnsupportedOperationException). Has anyone had the same problem?

  2. #2
    Join Date
    Jul 2006
    Location
    Rome, Italy
    Posts
    347

    Default

    Quote Originally Posted by Heiko View Post
    Hi,
    I use the org.springmodules.xt.ajax.component.dynamic.JSPCom ponent to re-fill a JSP dynamically within an Ajax-request. If the new contents contain umlauts, they are not displayed correctly (means they are rendered as "?"). I think this might be because the InternalHttpServletResponse does not allow to set the character encoding to "UTF-8" (=>UnsupportedOperationException). Has anyone had the same problem?
    It's related to: http://opensource.atlassian.com/proj...browse/MOD-369
    Just update to the latest nigthly build and use the proper org.springmodules.xt.ajax.component.dynamic.JSPCom ponent method for setting the encoding (accordingly to your JSP).

    Let us know if it solves your problem.
    Cheers,

    Sergio B.
    Sergio Bossa
    Spring Modules Team

  3. #3
    Join Date
    May 2007
    Location
    Munich
    Posts
    25

    Default

    Hi Sergio,
    thanks for your reply. Can you please give me a hint how I can access the latest nightly build of the spring modules?
    Thank you,
    Heiko

  4. #4
    Join Date
    Jul 2006
    Location
    Rome, Italy
    Posts
    347

    Default

    Quote Originally Posted by Heiko View Post
    Hi Sergio,
    thanks for your reply. Can you please give me a hint how I can access the latest nightly build of the spring modules?
    Thank you,
    Heiko
    http://static.springframework.org/do...hp?project=MOD
    Sergio Bossa
    Spring Modules Team

  5. #5
    Join Date
    May 2007
    Location
    Munich
    Posts
    25

    Default

    Hi Sergio,
    I think there is still one problem with umlauts left: The "AjaxResponseImpl" does declare an encoding (member variable "encoding"), but this encoding is not written into the opening tag of the response (static field "OPEN_RESPONSE"). In my tests, MS Internet Explore was not able to deal with umlauts in a response if the encoding was not included in the header of the response. (Firefox, on the other hand, was able to deal with this.)
    => Should the contents of the static field "OPEN_RESPONSE" be changed to "<?xml version="1.0" encoding={encoding}?>"?
    Sincerely,
    Heiko

  6. #6
    Join Date
    Jul 2006
    Location
    Rome, Italy
    Posts
    347

    Default

    Quote Originally Posted by Heiko View Post
    Should the contents of the static field "OPEN_RESPONSE" be changed to "<?xml version="1.0" encoding={encoding}?>"?
    Heiko, I think you are right.
    Can you raise a Jira issue about that?
    I'll fix it ASAP.

    Thanks,
    Cheers,

    Sergio B.
    Sergio Bossa
    Spring Modules Team

  7. #7
    Join Date
    May 2007
    Location
    Munich
    Posts
    25

  8. #8
    Join Date
    Jul 2006
    Location
    Rome, Italy
    Posts
    347

    Default

    Quote Originally Posted by Heiko View Post
    Fixed!
    Please update to the latest CVS code (or wait for the nightly build) and give it a try.

    Thank you for pointing it out,
    Cheers,

    Sergio B.
    Sergio Bossa
    Spring Modules Team

  9. #9
    Join Date
    May 2007
    Location
    Munich
    Posts
    25

    Default

    Hi Sergio,
    thanks for fixing this. It works fine now.
    Sincerely,
    Heiko

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •