Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Jag] Convert accents to html

Quote Reply
Re: [Jag] Convert accents to html In reply to
You should read doc of HTML::Entities...

Anyway, an examle code:
Code:
use HTML::Entities;

# Encode
my $chars2encode = "αισό\"&<>";
my $description = encode_entities($description, $chars2encode);

# Decode
my $description = decode_entities($description);

The module can also export the %char2entity and the %entity2char hashes which contain the mapping from all characters to the corresponding entities.


And I'm glad that you like DirName converter plugin idea. Try it out, it is very flexible.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Subject Author Views Date
Thread Convert accents to html Jag 2273 Sep 17, 2004, 9:26 PM
Thread Re: [Jag] Convert accents to html
webmaster33 2188 Sep 18, 2004, 3:56 AM
Thread Re: [webmaster33] Convert accents to html
Jag 2184 Sep 18, 2004, 12:17 PM
Post Re: [Jag] Convert accents to html
webmaster33 2183 Sep 18, 2004, 12:38 PM
Post Re: [Jag] Convert accents to html
webmaster33 2190 Sep 18, 2004, 12:51 PM