PApp::Recode - convert bytes from one charset to another
use PApp::Recode; # not auto-imported into .papp-files
$converter = to_utf8 PApp::Recode "iso-8859-1"; $converter->("string");
This module creates conversion functions that enable you to convert text data from one character set (and/or encoding) to another.
#FIXME# this module is certainly NOT finished yet, as PApp itself currently uses PApp::Recode::Pconv internaly ;->
Currently this function always returns 1. #FIXME#
This class has never been tested, so don't expect it to work.
Perl's internal utf8-flag is ignored on input and not set on output.
new
with the first argument equal to ``utf-8''. The
returned conversion function will, however, forcefully set perl's utf-8
flag on the returned scalar.
new
with the second argument equal to ``utf-8''. The
returned conversion function will, however, upgrade its argument to utf-8.
NYI
This is the class that actually implements character conversion. It should not be used directly.
convert_fresh($string)
Marc Lehmann <pcg@goof.com> http://www.goof.com/pcg/marc/