Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
UTF8simple(3)	      User Contributed Perl Documentation	 UTF8simple(3)

NAME
       Unicode::UTF8simple - Conversions to/from UTF8 from/to charactersets

SYNOPSIS
	use Unicode::UTF8simple;

	my $uref = new Unicode::UTF8simple;

	#convert a string (here: schA<paragraph>n) to a	utf8 byte string
	my $utf8string=$uref->toUTF8("iso-8859-1","schA<paragraph>n");

	#convert a string from utf-8 to	specified encoding
	my $string=$uref->fromUTF8("iso-8859-1",$utf8string);

	#get a lit of supported	encodings:
	my @listOfNames=$uref->enclist();

	#check if a given encoding (here gb2312) is supported
	if ($uref->encsup('gb2312')){ ... }

DESCRIPTION
       Provides	UTF-8 conversion for perl versions from	5.00 and up.  It was
       mainly written for use with perl	5.00 to	5.6.0 because those perl
       versions	do not support Unicode::MapUTF8	or Encode.

       Unicode::UTF8simple is written in plain perl (no	C code)	and will work
       with any	Perl 5 version.	It is just slightly slower than	Encode.

AUTHOR
       Guido Socher (guido at linuxfocus.org)

POD ERRORS
       Hey! The	above document had some	coding errors, which are explained
       below:

       Around line 40:
	   Non-ASCII character seen before =encoding in	'schA<paragraph>n)'.
	   Assuming CP1252

perl v5.32.1			  2004-12-27			 UTF8simple(3)

NAME | SYNOPSIS | DESCRIPTION | AUTHOR | POD ERRORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Unicode::UTF8simple&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help