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 ñ
Download (untitled) / with headers
text/plain 249b
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
Download (untitled) / with headers
text/plain 457b
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.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.