NAME

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

SYNOPSIS

use HTML::Entities::Latin2;

$lat2_string = "z\246mmel napos id\336";

print HTML::Entities::Latin2::encode($lat2_string, 'name');
# zŚmmel napos idŢ
 
print HTML::Entities::Latin2::encode($lat2_string); # decimal is default
print HTML::Entities::Latin2::encode($lat2_string, 'decimal');
# zŚmmel napos idŢ

print HTML::Entities::Latin2::encode($lat2_string, 'hex');
# zŚmmel napos idŢ

print HTML::Entities::Latin2::encode($lat2_string, 'utf8');
# z\x{015A}}mmel napos id\x{0162}

print HTML::Entities::Latin2::encode($lat2_string, 'description');
# zLATIN CAPITAL LETTER S WITH ACUTEmmel napos idLATIN CAPITAL LETTER T WITH CEDILLA

DESCRIPTION

Translate high-bit Latin2 characters into SGML 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.

EXPORT

None by default.

SEE ALSO

HTML::Entities

AUTHOR

Michael Mathews, <michael@perlinpractice.com<gt>

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