Skip Menu |

This queue is for tickets about the HTML-Parser CPAN distribution.

Report information
The Basics
Id: 127800
Status: rejected
Priority: 0/
Queue: HTML-Parser

People
Owner: Nobody in particular
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.72
Fixed in: (no value)



Subject: Incorrect encoding for ñ
The program: use HTML::Entities; print HTML::Entities::encode('La Cañada Flintrige'), "\n"; Prints La Cañada Flintrige It should print La Cañada Flintrige See https://dev.w3.org/html5/html-author/charref
On 2018-11-23 12:09:31, NHORNE wrote: Show quoted text
> The program: > > use HTML::Entities; > > print HTML::Entities::encode('La Cañada Flintrige'), "\n"; > > Prints > > La Cañada Flintrige > > It should print > > La Cañada Flintrige
Those aren't the right characters. You actually passed "La Cañada Flintrige", which is mojibaked. If you add "use utf8" to your script, you'll get "La Cañada Flintrige" as expected.