P
P
Povsekakiy Ivanov2014-08-04 00:39:56
linux
Povsekakiy Ivanov, 2014-08-04 00:39:56

How to change the encoding and open the file?

Hello!!!
I downloaded a web page using this Ubuntu terminal command:
wget http://www.bash.im/random.
Saved in the home directory. Using the following command:
cat random
I tried to open the file, but instead my terminal displayed only the HTML tags that this page contained and the Russian alphabet characters were replaced with white squares: bdae2dc03b474abf82438988e1a78908.png
Question-what to do? How can I open this in the terminal a wonderful file without tags and with readable Russian characters?
PS Thank you in advance!!!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dmitry Skogorev, 2014-08-04
@EnterSandman

Change terminal locale

E
evnuh, 2014-08-04
@evnuh

Open the file in a browser - it will open without tags and (most likely) in normal language (Russian)

D
Deerenaros, 2014-08-04
@Deerenaros

What do you mean "without tags"? Mb lynx try? Locales like html_HTML.UTF-8 don't exist.

M
Maxim, 2014-08-04
@1kachan

iconv -f WINDOWS-1251 -t UTF-8 -o output random

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question