facelets
  1. facelets
  2. FACELETS-53

Why Facelets Always use ISO-8859-1 as Default Page Encoding

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: ALL
    • Fix Version/s: early access
    • Component/s: jsf
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      53

      Description

      How to Change the Default Page Encoding?
      It's always ISO-8859-1,but I want to use UTF-8 or GBK(Simplified Chinese)...

      console output are like this:

      INFO Test.TestBean - getName 一二三

      with the facelets now,I must use config my Firefox browser,menu
      >view>character encoding->GBK,refresh the page,use below code to translate in
      my managed bean:

      public void setName(String name) throws Exception

      { this._name = new String(name.getBytes("iso8859-1"), "gbk"); }

      --ps: I use MyFaces before,the encoding always utf-8,and the submit value are
      always right.

        Activity

        Hide
        jhook added a comment -

        it will now use the encoding of the request, letting the renderkit actually
        dictate the encoding.

        Show
        jhook added a comment - it will now use the encoding of the request, letting the renderkit actually dictate the encoding.

          People

          • Assignee:
            facelets-issues
            Reporter:
            xingzengwu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: