In what format is the response you get? There is no such thing as a text file. There are only binary files. HTTP is also 100% binary.

Text is the interpretation of bytes, and it only exists as part of running application. You can never, ever write text to a file. You can only convert the text to bytes (using various ways) and write the bytes.

Therefore, ask yourself why the bytes you received cannot be interpreted by notepad.exe as text. Maybe the response is not directly text but a ZIP file or something.

  1. You can guess the format with a hex editor
  2. You can ask the website owner
Answer from usr on Stack Overflow
🌐
Online Text Tools
onlinetexttools.com › convert-binary-to-text
Convert Binary to Text – Online Text Tools
Super simple, free and fast browser-based utility for converting binary to text. Just paste your binary and you'll instantly get text. Textabulous!
Discussions

Converting binary file to text file
Hi, Im wondering how I can convert a binary file to a text file? I have ran the following command to output which type of binary file coding it is od -t x1 -c eHat.data0 | head -20 and that gives me the following output; 0000000 5c 00 00 00 cd 06 f2 41 00 00 00 c6 00 00 00 c6 \ \0 \0 \0 315 ... More on community.unix.com
🌐 community.unix.com
0
0
January 22, 2016
linux - How to convert "binary text" to "visible text"? - Stack Overflow
In fact, I picked some parts of ... into new text file, then opened in notepad++. The 2 parts shows as below. They are decoded in 2 different ways by notepad++. ... how do I recover the characters represented by ? I couldn't get result by "grep 'сойдя' win.txt" even though the "сойдя" is encoded into ? ... less non_ascii.txt "non_ascii.txt" may be a binary ... More on stackoverflow.com
🌐 stackoverflow.com
linux - Convert binary mode to text mode and the reverse option - Unix & Linux Stack Exchange
I converted a simple binary file into a text file with: od –t x1 Check.tar | cut –c8- > Check.txt Which gives a content similar to: 64 65 76 2f 6e 75 6c 6c 00 00 00 00 00 00 00 00 00 00 00 00... More on unix.stackexchange.com
🌐 unix.stackexchange.com
notepad++ handling / converting binary command characters - Stack Overflow
I'm using notepad++. i want to copy my code and then paste it in a simple textarea of little program (which obfuscates variables, removes blank lines & comments) and returns it. the problem is my code contains binary command characters (like the NUL in white writing with black background) which the program cant handle. my questions is, is there a simple way to convert ... More on stackoverflow.com
🌐 stackoverflow.com
People also ask

Can you convert binary to text?
Yes, manually it’s a little hard. But for making it simple as hell Duplichecker.com has developed an online Binary to text converter. That converts binary values exactly in text form. Most easy to use a binary translator
🌐
duplichecker.com
duplichecker.com › binary-to-text.php
Binary to Text | Free online Binary to Text Converter
What is hello in binary?
Answer is “1101000 1100101 1101100 1101100 1101111 100000”. HELLO, word has a binary code as mentioned in the previous line. This is how a machine understands Hello. H = 1101000, E=1100101, L=1101100, L=1101100, O=100000.
🌐
duplichecker.com
duplichecker.com › binary-to-text.php
Binary to Text | Free online Binary to Text Converter
What does 01101001 mean?
The answer is 69 in hexadecimal value and the alphabetic letter “I” will be the answer in ASCII or text form. So 01101001 value in ASCII “i” and in hexadecimal is 69.
🌐
duplichecker.com
duplichecker.com › binary-to-text.php
Binary to Text | Free online Binary to Text Converter
🌐
Quora
quora.com › How-do-I-convert-a-bin-file-to-text
How to convert a bin file to text - Quora
Short answer, you don’t. A bin file is binary (in all fairness, all data is binary at the very bottom of it all, but that’s another discussion). A bin file can contain any number of types of data or even be a container to contain other items etc. So long as you don’t know how the structure of the bin file you’re out of luck. You can of course open it in Notepad or another text editor, but it would most likely just be garbled information in there.
🌐
Duplichecker.com
duplichecker.com › binary-to-text.php
Binary to Text | Free online Binary to Text Converter
Binary to Text translate with this Useful, Free online tool that converts binary data to plain text. Just Paste Binary Value and Press button, get results.
Find elsewhere
🌐
RapidTables
rapidtables.com › convert › number › binary-to-ascii.html
Binary to Text Translator
Paste binary byte codes in input text box. Select character encoding type. Press the Convert button.
🌐
Techyv
techyv.com › home › questions › method to convert a binary file to text using any tool
Method To Convert A Binary File To Text Using Any Tool - Techyv.com
August 1, 2017 - You can either write your own in any programming language to convert the binary file to readable text file format or can deploy particular software to do so. I’ll give you two easy methods to achieve your task. ... Open the file using Notepad++. If you don’t have Notepad++, download and ...
🌐
Teleport
goteleport.com › resources › tools › binary-to-text-converter
Binary to Text Converter | Instantly Convert Binary to Readable Text | Teleport
Instantly convert binary data to readable text with our free online tool. Decode binary messages and simplify your data interpretation in seconds.
🌐
Unix Community
community.unix.com › unix for beginners q & a › unix for dummies questions & answers
Converting binary file to text file - UNIX for Dummies Questions & Answers - Unix Linux Community
January 22, 2016 - Hi, Im wondering how I can convert a binary file to a text file? I have ran the following command to output which type of binary file coding it is od -t x1 -c eHat.data0 | head -20 and that gives me the following output; 0000000 5c 00 00 00 cd 06 f2 41 00 00 00 c6 00 00 00 c6 \ \0 \0 \0 315 ...
🌐
Free File Converter
freefileconvert.com › home › bin converter › bin to txt
Convert BIN to TXT (Free & Online) - FreeFileConvert
On windows .txt file support has existed since 1985 when Windows 1.0 was released and since then has been mostly associated with the notepad application on Microsoft Windows. FreeFileConvert uses tuned encoding for BIN to TXT conversions, preserving clarity while trimming file size. Finished audio streams instantly across phones, tablets, desktops, and modern browsers without extra tweaks. Upload BIN files from desktop, tablet, or cloud storage, queue multiple jobs, and let the converter finish autonomously.
🌐
Text Compare
textcompare.io › binary-to-text
Binary to Text Online
Step 4: Copy the result or download it as a .txt file. ... No registration or payment needed. You can convert as much data as you want, completely free. It works right in your browser. You don't need to download or install any software. The clean design makes it easy to get your conversion done without distractions. Just paste and convert. The conversion happens instantly in your browser, so you get your results without waiting. The tool uses standard binary encoding rules to ensure your translation is always 100% correct.
Top answer
1 of 1
4

Your question really has two parts: (1) how do I identify an unknown encoding and (2) how do I convert that to something useful?

The first part is the real challenge, and really cannot be answered in universal terms -- in the general case, there is no reliable way to identify an unknown 8-bit encoding. Some encodings give you good hints (UTF-8 is an excellent example) and in many cases, if you have a good idea what the text is supposed to represent, the problem can be solved.

A mapping of 8-bit character meanings can be helpful (cough, the link is to mine) and in this case quickly hints at Windows code page 1251. Kudos for the hex dumps and the picture with the representation you expect!

With that out of the way, converting is easy.

iconv -f cp1251 -t utf-8 non_ascii.txt >utf8.txt

Provided your Linux system is set up to use UTF-8 at the terminal, your grep command should work on utf-8.txt now.

The indication that some of the text is "ANSI" (which is a bogus term anyway) is probably just a red herring -- as far as I can tell, everything in your excerpt looks like well-formed CP1251.

Some tools like chardet do a reasonable job of at least steering you in the right direction, though you have to understand that, like a human expert, they have to guess what the text is supposed to represent. There are corner cases where they just don't have enough information to guess correctly, either because there are several candidate encodings with very few differences (for example, Latin-1 vs Latin-9 vs Windows-1252, all of which also overlap with plain 7-bit US-ASCII in the first 128 positions) or because the input doesn't contain enough information to establish any common patterns.

🌐
LinuxQuestions.org
linuxquestions.org › questions › linux-newbie-8 › how-to-convert-binary-file-into-text-file-in-linux-4175495937-print
LinuxQuestions.org - How to convert binary file into text file in linux
February 23, 2014 - - - How to convert binary file into text file in linux (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-convert-binary-file-into-text-file-in-linux-4175495937/)
🌐
Stack Exchange
unix.stackexchange.com › questions › 689251 › convert-binary-file-to-text-file
Convert binary file to text file - Unix & Linux Stack Exchange
February 4, 2022 - It could be encoded in something like UTF-16LE, in which case iconv -f UTF-16LE < file.srt > new-file.srt or even dos2unix --assume-utf16le < file.srt > new-file.srt to fix the other MS crap if any may help.
🌐
Notepad++ Community
community.notepad-plus-plus.org › topic › 17319 › how-to-convert-this-file-in-readable-format-any-type-will-ok-like-hex-ascii-bin-etc
HOW TO CONVERT THIS FILE IN READABLE FORMAT ?ANY TYPE WILL OK LIKE >> HEX,ASCII,BIN ETC... | Notepad++ Community
March 17, 2019 - ITS .COL FILE (<1KB) OPENIN NPP++ TEXT FILE IS HERE PLEASE TELL ME WHICH SETTING I NEED TO DO FOR VIEW ANY GOOD FORMAT THAT’S MAKE MAY LIFE LITTLE EASY… ... the .col file extension is used for a variety of software products, so i am not able to tell you exactly which product might be needed to process, use or open your specific file, but i found some helpful information about .col files over >>> here <<<. ... For more on why Notepad++ is not the right tool for reading binary ...
🌐
OutSystems
outsystems.com › forums › discussion › 26731 › converting-binary-data-to-text
Converting binary data to text | OutSystems
Hi everyone, I have binary data that I would like to convert into a text file and store that file in a server. I don't want the user to download the file. I want that to happen behind the scene. So for example while the user clicks on a button, the file will be created, then from there it will ...