[Catalyst] unicode best practices

Daniel McBrearty danielmcbrearty at gmail.com
Thu Feb 15 21:11:15 GMT 2007


other stuff I've found:

http://search.cpan.org/~bricas/DBIx-Class-0.07003/lib/DBIx/Class/UTF8Columns.pm
- utf8 text fields in the db are automatically flagged as such when retrieved

I also found once I started using the above, I needed to install

http://search.cpan.org/~lyokato/Catalyst-View-TT-ForceUTF8-0.06/lib/Catalyst/View/TT/ForceUTF8.pm

to avoid garbled output.

There is also somewhere a module which causes stash to be flagged
utf8, but I haven't needed it. Yet ...



On 2/15/07, Richard Jolly <richardjolly at mac.com> wrote:
> Hi,
>
> The crux of this question is what is best practice for a catalyst/DBIC
> app to have it fully unicode aware.
>
> We've got:
>
> MySQL with charset defined as UTF8
> DBIC with on connect do SET NAMES and SET CHARSET and UTF8Columns
> Catalyst::Plugin::Unicode
> End actions specify content type as including charset utf8
> Then, finally, making sure any files (which include log files and
> fixture files for tests) opened use the utf8 io layer.
>
> Should this be enough?
>
> Thanks,
>
> Richard
>
>
>
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>


-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131



More information about the Catalyst mailing list