3

I am trying to use the following command but can't get the right output:

$ w3m -dump_source google.com
r���G��2�Ph��ү�f�� ����?�l���%Y:���c(�����������Y\��s8Ư|   ��;����1ʹ��D��^�lK���٥r��\���Սk�V��Ϸv���{��r�����~s\��~?�ML7���¹���ƿ�qm��h��q�(��:wZ a�

How can I change the charset?

I've also tried

w3m -O "UTF-8" -dump_source "google.com"

and

w3m -I "UTF-8" -dump_source "google.com"

but none worked.

pomsky
  • 70,557

2 Answers2

2
    w3m -o accept_encoding=UTF-8 -dump_source google.com

or

    w3m -o accept_encoding=='*;q=0' -dump_source google.com
0

month of attempts, but the result with w3m could not be reached.

Alternative option using elinks:

elinks -source google.com

There was also a problem with the encoding. but it turned out to be solved as follows

LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

put it to terminal