Issue Details (XML | Word | Printable)

Key: FACELETS-53
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: facelets-issues
Reporter: xingzengwu
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
facelets

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

Created: 01/Nov/05 04:43 AM   Updated: 04/Dec/05 01:27 PM   Resolved: 04/Dec/05 01:27 PM
Component/s: jsf
Affects Version/s: ALL
Fix Version/s: early access

Time Tracking:
Not Specified

Environment:

Operating System: All
Platform: All


Issuezilla Id: 53
Tags:
Participants: facelets-issues, jhook and xingzengwu


 Description  « Hide

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.



jhook added a comment - 04/Dec/05 01:27 PM

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