tod222 has asked for the wisdom of the Perl Monks concerning the following question:
This code:
produces#!/usr/bin/perl use strict; use warnings; use HTML::Entities; my $line = "This is a test of \xe2\x80\x9cquotes\xe2\x80\x9d\n"; print encode_entities($line, "\200-\377"); # looking for “ &rdqu +o; in the output print $line;
instead of the desiredThis is a test of “quotes” This is a test of “quotes”
Any hints?This is a test of “quotes” This is a test of “quotes”
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML::Entities and Unicode quotes
by Your Mother (Archbishop) on Aug 20, 2011 at 02:06 UTC | |
by ikegami (Patriarch) on Aug 20, 2011 at 06:22 UTC | |
by Your Mother (Archbishop) on Aug 20, 2011 at 16:41 UTC | |
by ikegami (Patriarch) on Aug 20, 2011 at 20:59 UTC | |
by Your Mother (Archbishop) on Aug 20, 2011 at 22:48 UTC | |
| |
by tod222 (Pilgrim) on Aug 22, 2011 at 06:23 UTC | |
by ikegami (Patriarch) on Aug 22, 2011 at 06:42 UTC | |
by tod222 (Pilgrim) on Aug 23, 2011 at 03:46 UTC | |
by ikegami (Patriarch) on Aug 23, 2011 at 06:10 UTC | |
by Anonymous Monk on Aug 22, 2011 at 06:51 UTC | |
by tod222 (Pilgrim) on Aug 23, 2011 at 03:54 UTC | |
|
Re: HTML::Entities and Unicode quotes
by ikegami (Patriarch) on Aug 20, 2011 at 06:35 UTC | |
|
Re: HTML::Entities and Unicode quotes
by Anonymous Monk on Aug 20, 2011 at 02:08 UTC |