gepebril69 has asked for the wisdom of the Perl Monks concerning the following question:
Hi there
I'm trying to automate emails and using therefor HTML templates and parse the dynamic data into it. This goes well unless I use characters like é, ë, ï in some web email programs. It seems I have to translate/convert these special characters HTML entity names
I found HTML::Entities but it not seems to give the result I expect. I only want to convert the special characters, not HTML markup, like <font>. When I run
It returns ï in stead of ïmy $TestStr = 'ï'; print encode_entities($TestStr);
Bug in my module, me not understanding the module?
yours sincerely,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Encode string to HTML
by Corion (Patriarch) on Nov 01, 2013 at 14:43 UTC | |
by gepebril69 (Scribe) on Nov 01, 2013 at 16:28 UTC | |
|
Re: Encode string to HTML
by hippo (Archbishop) on Nov 01, 2013 at 14:46 UTC | |
by Corion (Patriarch) on Nov 01, 2013 at 14:50 UTC | |
by hippo (Archbishop) on Nov 01, 2013 at 15:06 UTC | |
by gepebril69 (Scribe) on Nov 01, 2013 at 15:27 UTC | |
by gepebril69 (Scribe) on Nov 01, 2013 at 15:22 UTC | |
|
Re: Encode string to HTML
by Your Mother (Archbishop) on Nov 01, 2013 at 16:31 UTC | |
|
Re: Encode string to HTML
by locked_user sundialsvc4 (Abbot) on Nov 01, 2013 at 15:03 UTC | |
by gepebril69 (Scribe) on Nov 01, 2013 at 16:17 UTC |