[Dbix-class] How to fetch utf8 chinese chars.

Wo Weiyan weiyanwo at hotmail.com
Sun Feb 13 15:57:58 GMT 2011


Dear buddies,
I am exploring the DBIx with Mojolicios with sqlite.
Chinses characters fetche like this:
Single cylinderYamahaBlackCruiserHondaGreenSportSuzukiYellow=E8=B6=8A=E9=87=
=8EYamahaGrey
The code is here:
    get '/' =3D> sub {        my $self =3D shift;        $self->stash(motor=
bikes =3D> [$schema->resultset('Motorcycle')->all]);        } =3D> 'index';=
.......
In the template:
   <table>   % foreach my $cycle (@{$motorbikes} ) {     <tr>        <td><%=
=3D $cycle->type %></td>        <td><%=3D $cycle->brand %></td>        <td>=
<%=3D $cycle->color %></td>      </tr>    % }    </table>
Regards. 		 	   		  =

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20110213/3c7=
52cdc/attachment.htm


More information about the DBIx-Class mailing list