Mojo::Unicode::UTF8 - use Unicode::UTF8 as the UTF-8 encoder for Mojolicious
use Mojo::Unicode::UTF8; use Mojo::Util 'decode', 'encode'; # Preload for scripts using Mojo::Util $ perl -MMojo::Unicode::UTF8 $(which morbo) myapp.pl # Must be set in environment for hypnotoad $ PERL5OPT=-MMojo::Unicode::UTF8 hypnotoad myapp.pl
Mojo::Unicode::UTF8 is a monkey-patch module for using Unicode::UTF8 as the UTF-8 encoder for a Mojolicious application, or anything else using Mojo::Util. It must be loaded before Mojo::Util so the new functions will be properly exported. Calling "decode" in Mojo::Util or "encode" in Mojo::Util with any encoding other than UTF-8 will fall back to Encode as normal. For details on the benefits, see "COMPARISON" in Unicode::UTF8.
UTF-8
Report any issues on the public bugtracker.
Dan Book <dbook@cpan.org>
This software is Copyright (c) 2015 by Dan Book.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
Mojo::Util, Unicode::UTF8, Encode
To install Mojo::Unicode::UTF8, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojo::Unicode::UTF8
CPAN shell
perl -MCPAN -e shell install Mojo::Unicode::UTF8
For more information on module installation, please visit the detailed CPAN module installation guide.