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”
In reply to HTML::Entities and Unicode quotes by tod222
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |