#10 Fix charset on Spring JsonView

closed-fixed
nobody
None
5
2010-12-02
2009-08-05
Anonymous
No

AbstractView (from which JsonView is derived) specifies the content type as text/html;charset=ISO-8859-1. As JsonView doesn't specify the charset in the content type (application/json), the view is encoded using ISO-8859-1, causing problems with character encoding on non-latin characters. The patch changes the default content type to application/json;charset=UTF-8, and I've added a unit test to check the encoding output too.

Discussion

  • Nobody/Anonymous

    Patch for UTF-8 encoding in JsonView

     
  • aalmiray

    aalmiray - 2010-12-02

    Patch applied. Thank you!

     
  • aalmiray

    aalmiray - 2010-12-02
    • status: open --> closed-fixed
     
  • aalmiray

    aalmiray - 2010-12-02

    Patch applied. Thank you!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks