Questions tagged [file-encodings]

In communications and Information processing, file-encoding is the process by which information from a source is converted into symbols to be communicated.The tag file-encoding refers to programming related questions belongs to various encoding schemes for file formats.

Wiki:

Encoding of a file is achieved by converting information into another form of representation. The information can be then converted in any file format. The encoding of a file must follow the rules of file format specifications. Every known file format has its own header structure and while writing a file, encoder must obey rules of file header format.

Example: Analog data which comes through a device sensor or a camera can be converted into digital data which later can be written in a file with image formats like .BMP .JPG .PNG TIFF GIF etc. The BMP or Bitmap file format is a common and simplest kind of image format which can be encoded with various encoding schemes like Monochrome encoding, 24-Bit encoding etc. and This must be done so that the Decoder applications, browsers and Image viewers can decode the encoded file formats.

Usage:

The tag file-encodings can be used for file encoding related programming questions. The tag should not be confused with related programming questions.

135 questions
1
vote
1 answer

Accidentally created a MATLAB file

I was recently playing around with a command-line hex editor called Hx, and decided to create a sample file to play around in. I typed in the bytes 23, 23, 23, 23, and 23. Somehow, my system file manager (Thunar) recognized this as a MATLAB file. …
1
vote
2 answers

Android Studio "File was loaded in the wrong encoding:'UTF-8'" and "Java file does not declare any class" out of nowhere

Please note that I've read "File was loaded in the wrong encoding:'UTF-8' in IntelliJ IDEA" this, and everything else related to this issue that I'm having which is going to make me rewrite everything that I did in my project in past 2 days. Now,…
Vedprakash Wagh
  • 3,595
  • 3
  • 12
  • 33
1
vote
0 answers

How to decode unicode text data back to excel file with or without php?

Hello I'm trying to convert the encoded text data back to excel file. I have an excel file(.xlsx), when it is opened in notepad, it show encoded text data. And I'm getting the data in the encoded text which I need to convert back to excel file. I…
David
  • 366
  • 3
  • 22
1
vote
2 answers

How to convert encoding of text file (which contains text of language other than English) from "UTF-16 LE" to "UTF-8" in Python?

I have few text files which contain text in Hindi language in a folder. But those text files are in UTF-16 LE Encoding. I want to change the encoding to UTF-8 without changing text in it. How can I do that? I wrote two python files but none of them…
E.Praneeth
  • 264
  • 3
  • 16
1
vote
4 answers

Is there any downside to save all my source code files in UTF-8?

If that's relevant (it very well could be), they are PHP source code files.
julien_c
  • 4,942
  • 5
  • 39
  • 54
1
vote
0 answers

corrupted event log files

I have an event file which is coming from external power analyzer device's SD card. When I try to open this file via Windows Event Viewer I am getting following error message; When I try to open it via Notepad it seems its encoded, In R, I tried…
Beril Boga
  • 97
  • 2
  • 9
1
vote
2 answers

Unix. sed command. Replace a expression containing \n. Database migration from Sybase to MySQL. Windows-Unix plain text encoding

I am migrating a database from Sybase to MySQL. For that, I am exporting the tables in .csv files and then loading them in the new tables in MySQL. When doing this, NULL values are converted to 0 in MySQL, so I need to edit the .csv files to find…
InspiredCat
  • 27
  • 2
  • 7
1
vote
1 answer

Finding and replacing special chars in a file

I'm trying to find and replace some special chars in a file encoded in ISO-8859-1, then write the result to a new file encoded in UTF-8: package inv class MigrationScript { static main(args) { new MigrationScript().doStuff(); } …
uylmz
  • 1,480
  • 2
  • 23
  • 44
1
vote
1 answer

Remove '�' from different encoded file when reading in C#

I can't control what encoding some of our clients save a file, and when it's ASCII the file may have missing characters that then show, '�'. How can I remove these characters, '�', after the file is read? I am reading the file with the below line,…
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
1
vote
0 answers

Other Language(Chinese) character chenge in to ??????? Mysql Load Query

I have a csv File in that few columns are containing Chinese words, I am uploading the csv file in Mysql Table using Query: LOAD DATA local INFILE '/CsvFile.csv' INTO TABLE mytableName FIELDS TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '\\' LINES…
ansh
  • 573
  • 3
  • 9
  • 26
1
vote
2 answers

How to store EBCDIC (IBM-1047) encoding text in Java String without corrupting it?

My java program is trying to read a text file (Mainframe VSAM file converted to flat file). I believe this means, the file is encoded in EBCDIC format. I am using com.ibm.jzos.FileFactory.newBufferedReader(fullyQualifiedFileName,…
yathirigan
  • 5,619
  • 22
  • 66
  • 104
1
vote
0 answers

Handling file/string encodings in Python library design

I am finishing up a new Python library which, among other things, can read and write files and strings in a specific format. I thought it would be nice if the read/write functions were equipped to handle different encodings. The library is expected…
NordCoder
  • 403
  • 1
  • 7
  • 21
1
vote
2 answers

How to expand file content with powershell

I want to do this : $content = get-content "test.html" $template = get-content "template.html" $template | out-file "out.html" where template.html contains $content and test.html…
user310291
  • 36,946
  • 82
  • 271
  • 487
1
vote
1 answer

How to ignore nerdtree buffer in vimrc settings?

I have the following line in my init.vim: if !&readonly set fileencoding=utf-8 endif Which sets the fileencoding to utf-8. It works fine, unless I have my cursor in a nerdtree window, in which case I get the following error: I guess that it's…
user5918874
1
vote
2 answers

Setting encoding for new projects in PhpStorm

I am trying to force PhpStorm to encode newly created files as UTF-8, instead of Windows-1252 (which seems to be the default). I know I can set "Project encoding" in "settings/editor/file encodings", which sets the default encoding for all newly…
Kalko
  • 406
  • 3
  • 11
1 2 3
8 9