HTML::Entities::Latin2 - Encode ISO-8859-2 characters into HTML entities.
use HTML::Entities::Latin2; $lat2_string = "\"k\xF6zponti\" <b>sz\xE1m\xEDt\xF3g\xE9p</b>"; print HTML::Entities::Latin2::encode($lat2_string); # "központi" <b>számítógép</b> print HTML::Entities::Latin2::encode($lat2_string, 'name', '<"'); # "központi" <b>számítógép</b> print HTML::Entities::Latin2::encode($lat2_string, 'hex'); # "központi" <b>számítógép</b>
Translate high-bit Latin2 characters into HTML entities based on the ISO-8859-2 character map, with option of using named, decimal or hex entities. Using this process will allow Eastern European encoded text to be used in ASCII HTML pages.
encode($latin2_string, $encoding_scheme, $unsafe_chars);
HTML::Entities http://czyborra.com/charsets/iso8859.html#ISO-8859-2 http://www.w3schools.com/html/html_entitiesref.asp http://www.microsoft.com/globaldev/reference/iso/28592.htm
Michael J. Mathews, michael@perlinpractice.com
Copyright 2005 Michael J. Mathews. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This module has only been tested on Unix, Perl 5.6.1, and 5.8.1.
To install HTML::Entities::Latin2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Entities::Latin2
CPAN shell
perl -MCPAN -e shell install HTML::Entities::Latin2
For more information on module installation, please visit the detailed CPAN module installation guide.