[Catalyst] Wide (Unicode) character problem?

Nicholas Wehr catalyst at bionikchickens.com
Wed Mar 23 15:46:21 GMT 2011


which platform are you testing on? windows mac linux?

On Wed, Mar 23, 2011 at 7:49 AM, John M. Dlugosz <wxju46gefd at snkmail.com>wr=
ote:

> On 3/23/2011 8:58 AM, Bill Moseley moseley-at-hank.org |Catalyst/Allow to
> home| wrote:
>
>> Post the smallest possible example (<20 lines?) that clearly shows the
>> problem.
>>
>>
>>  OK, I verified that it still chokes if I strip it down to the bare
> essentials.
> If the view produces a stream that includes a wide character, I get the
> exception.
>
> Here is my Controller:
> =3D=3D=3D=3D
> package LEDft::Controller::Root;
> use Moose;
> use namespace::autoclean;
> use Mail::Builder::Simple;
>
> use Try::Tiny;
>
> BEGIN { extends 'Catalyst::Controller::HTML::FormFu' }
>
> #
> # Sets the actions in this controller to be registered with no prefix
> # so they function identically to actions created in MyApp.pm
> #
> __PACKAGE__->config(namespace =3D> '');
>
> my %Data=3D (
>        priceline =3D> "10\x{2032} poll",
>    );
>
> sub index :Path :Args(0) {
>    my ( $self, $c ) =3D @_;
>    $c->{stash}->{AdminContent}=3D \%Data;
> }
>
>
> sub end : ActionClass('RenderView') {}
>
>
> __PACKAGE__->meta->make_immutable;
>
> 1;
> =3D=3D=3D=3D
>
>
> Here is the index.tt file:
> =3D=3D=3D=3D
> <p>[% AdminContent.priceline %]</p>
>
> =3D=3D=3D=3D
>
> Also, the app's config states:      default_view =3D> 'Alloy',
> So the tt file is being processed using Alloy.  I get the same result if I
> use 'TT', the more common choice.
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> So, if the template produces a result that includes a "wide" character, I
> get the exception.
>
>
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110323/22b57=
a02/attachment.htm


More information about the Catalyst mailing list