Also, note that your code needs to know its own encoding.
use strict; use HTML::Entities; { my $TestStr = 'ï'; print encode_entities($TestStr), $/; } { use utf8; my $TestStr = 'ï'; print encode_entities($TestStr), $/; } __END__ ï ï
In reply to Re: Encode string to HTML
by Your Mother
in thread Encode string to HTML
by gepebril69
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |