NAME

HTML::Entities::Latin2 - Encode ISO-8859-2 characters into HTML entities.

SYNOPSIS

use HTML::Entities::Latin2;

$lat2_string = "\"k\xF6zponti\" <b>sz\xE1m\xEDt\xF3g\xE9p</b>";

print HTML::Entities::Latin2::encode($lat2_string);
# "k&#246;zponti" <b>sz&#225;m&#237;t&#243;g&#233;p</b>

print HTML::Entities::Latin2::encode($lat2_string, 'name', '<"');
# &quot;k&ouml;zponti&quot; &lt;b>sz&aacute;m&iacute;t&oacute;g&eacute;p&lt;/b>

print HTML::Entities::Latin2::encode($lat2_string, 'hex');
# "k&#x00F6;zponti" <b>sz&#x00E1;m&#x00ED;t&#x00F3;g&#x00E9;p</b>

DESCRIPTION

Translate high-bit Latin2 characters into HTML entities based on the ISO8859-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.

FUNCTIONS

encode($latin2_string, $encoding_scheme, $unsafe_chars);

SEE ALSO

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

AUTHOR

Michael Mathews, michael@perlinpractice.com

COPYRIGHT AND LICENSE

Copyright 2004 Michael Mathews. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

CAVEATS

This library has only been tested on Perl 5.6.1, and 5.8.1