Article 5P3XY lynx dump double encoding for utf8

lynx dump double encoding for utf8

by
usr345
from LinuxQuestions.org on (#5P3XY)
I have a utf8 encoded html file with Russian text:

Code: , ...<span id="d6a0f08e75753cc2cursor-target"></span><br /><br />When I try to render it with the following command:

Code:lynx -dump --display_charset=utf-8 ~/mess.htmlI get this:

Code: D DD DDNND DDND3/4DN, D ND3/4DDDDDDN...Ok, this looked familiar to me: double encoding of utf8. I created the following Perl script:

Code:#!/usr/bin/perl

use utf8;
use strict;
use warnings;
use Encode qw(encode);

my $text = " , ...";
print encode("utf8", encode("utf8", $text)) . "\n";And voila, we got the same result: "D DD DDNND DDND3/4DN, D ND3/4DDDDDDN...".

How to fix this in lynx?latest?d=yIl2AUoC8zA latest?i=-5Jgt3k-WIc:Ax8x6iXZMgo:F7zBnMy latest?i=-5Jgt3k-WIc:Ax8x6iXZMgo:V_sGLiP latest?d=qj6IDK7rITs latest?i=-5Jgt3k-WIc:Ax8x6iXZMgo:gIN9vFw-5Jgt3k-WIc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments