You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Michael Wyraz <mi...@evermind.de> on 2014/04/08 15:23:18 UTC

Broken UTF-8 handling in tapestry 5.4 becomes show-stopper - please help

Hi,

could please anyone with commit access fix this little issue 
https://issues.apache.org/jira/browse/TAP5-2219 or at least add the 
testcase to the testsuite? This becomes a show-stopper for us for 
migration to tapestry 5.4 since all pages with utf-8 chars fails on windows.

Kind regards,
Michael.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: Broken UTF-8 handling in tapestry 5.4 becomes show-stopper - please help

Posted by Michael Wyraz <mi...@evermind.de>.

> Ideally, it would all be driven by the encoding specified by the xml
> template.
>
> As a  second choice, I think it should be driven by a configurable symbol.
>


No, neither of both makes sense here. The only thing that is required to 
fix the bug is that reading uses the same encoding as writing.
This is just internal processing of the content and only the doctype of 
the document is accessed here. It hat neither to do with the encoding 
that is used for reading the xml document nor with the encoding of the 
resulting (x)html file.

This is a trivial bugfix and the discussion here already took more time 
to fix it (using the fix+testcase I provided in TAP5-2219).

Kind regards,
Michael.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: Checkbox validation for accepting terms & conditions.

Posted by Basile Chandesris <ba...@free.fr>.
http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/corelib/components/Checkbox.html

http://jumpstart.doublenegative.com.au/jumpstart/examples/input/mixedvalidation

https://tapestry.apache.org/forms-and-validation.html#FormsandValidation-TrackingValidationErrors



====
Hi All,

I need to implement a registration form where the user has to accept the
terms & conditions of the site by ticking a checkbox.
I was wondering somebody has come across a tapestry extension that does
something like this.
I would say that a custom validator could solve this.

Thanks and regards,
Balazs


Re: Broken UTF-8 handling in tapestry 5.4 becomes show-stopper - please help

Posted by Lance Java <la...@googlemail.com>.
Ideally, it would all be driven by the encoding specified by the xml
template.

As a  second choice, I think it should be driven by a configurable symbol.

Re: Broken UTF-8 handling in tapestry 5.4 becomes show-stopper - please help

Posted by Michael Wyraz <mi...@evermind.de>.
It is because that is only a intermediate presentation of the page's 
content:
- it is read from filesystem by whatever encoding is configured
- it is pre-processed and written internally as UTF-8 (hard-coded) into 
a byte array or such
- it is read again internally as System encoding (not hardcoded -> bug) 
again.

>> It still would be great if this could be fixed :-)
> Agreed, but I'm not convinced that hard coding UTF8 is the answer :)
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: Broken UTF-8 handling in tapestry 5.4 becomes show-stopper - please help

Posted by Lance Java <la...@googlemail.com>.
> It still would be great if this could be fixed :-)

Agreed, but I'm not convinced that hard coding UTF8 is the answer :)

Re: Broken UTF-8 handling in tapestry 5.4 becomes show-stopper - please help

Posted by Michael Wyraz <mi...@evermind.de>.
Thank you, that helped a lot!
It still would be great if this could be fixed :-)

Regards,
Michael.


> You could set -Dfile.encoding=UTF-8 when starting up the servlet container.
>   On 8 Apr 2014 14:24, "Michael Wyraz" <mi...@evermind.de> wrote:
>
>> Hi,
>>
>> could please anyone with commit access fix this little issue
>> https://issues.apache.org/jira/browse/TAP5-2219 or at least add the
>> testcase to the testsuite? This becomes a show-stopper for us for migration
>> to tapestry 5.4 since all pages with utf-8 chars fails on windows.
>>
>> Kind regards,
>> Michael.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: dev-help@tapestry.apache.org
>>
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: Broken UTF-8 handling in tapestry 5.4 becomes show-stopper - please help

Posted by Lance Java <la...@googlemail.com>.
You could set -Dfile.encoding=UTF-8 when starting up the servlet container.
 On 8 Apr 2014 14:24, "Michael Wyraz" <mi...@evermind.de> wrote:

> Hi,
>
> could please anyone with commit access fix this little issue
> https://issues.apache.org/jira/browse/TAP5-2219 or at least add the
> testcase to the testsuite? This becomes a show-stopper for us for migration
> to tapestry 5.4 since all pages with utf-8 chars fails on windows.
>
> Kind regards,
> Michael.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>