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
0
votes
0 answers

Error comparing french characters in a c++ string

I was wondering if any of you could help me with a problem I'm having. Currently I have a function that takes in a c-style string, creates a temporary c++ style string and store the c string into it, and uses the find_first_not_of command to look…
Hayden Taylor
  • 65
  • 1
  • 9
0
votes
2 answers

Usb special character (virus affected) directory data in VB

I have been writing a code to remove common virus we are facing today, that simply puts all data into a special folder that shows no title. In fact it is a chr(160) in VB. When I get directory list it shows with and empty name but I cannot change…
tayyab
  • 78
  • 1
  • 6
0
votes
2 answers

Binary file transfer over http coming out corrupt

I'm doing the below to upload a .pptx file and save it on the disk of the server. When I try to open the file, it says that it's corrupt, and cannot be opened. Is this because of my encoding type or something different? Is it possible to send any…
user773737
0
votes
1 answer

set file encoding attributes of *.txt file on webserver

gh-pages is mobibaking a text file . . . Our CI build server copies some build artifacts to gh-pages. Locally, I can see that the file-encoding is UTF-8, and if I download the file, and open it, it renders just fine in a text-editor. However, in…
Jasper Blues
  • 28,258
  • 22
  • 102
  • 185
0
votes
1 answer

Java JTextField special chars

I have a problem with the chars of all JTextField on my program (when compiled into JAR). When I run it from Eclipse everything works fine... the problem is when run from the already compiled JAR. The problem is, when I insert text to JTextField…
Gabriel
  • 5
  • 1
  • 4
0
votes
1 answer

Copying a text file line by line vb.net half the size?

I'm trying to modify specific lines in a 6 gig text file (SQL script). So I read it in with IO.StreamReader.ReadLine and write to a new file with IO.StreamWriter.WriteLine. If the line matches a certain condition, I'm modifiying it before I write…
John
  • 2,653
  • 4
  • 36
  • 57
0
votes
2 answers

new String(byte[]) gives different results when I put it in vs pull it out of the database

Before I save a byte array to the database if I print the output of new String(data) it returns a readable string like "foobar" but after I pull it out of the database, new String(data) will read like a bunch of gibberish like…
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356
-1
votes
1 answer

How to import multiple CSVs with different encodings into one data frame?

I'm trying to put together two answers on the site to figure out my situation, but no luck so far. Essentially I have several CSVs with the same columns but different encodings, which means that when I try the approach here, I also have to iterate…
Khashir
  • 341
  • 3
  • 20
-1
votes
2 answers

understanding encoding of exe/dll files

I recently tried to understand how sockets module works in python, I opened the source code and by tracing socket class I found out it uses something like _socket.socket. When i scroll up and find import _socket i traced it down and found out that…
user15166425
-1
votes
1 answer

How to determine the fileencoding of a file in linux correctly

When I have a file created in Vim/Linux with :set fileencoding=utf-8 and have diacritics (as e.g. german umlauts) in the file, then calling up file myfile.txt results to myfile.txt: UTF-8 Unicode text. If I have no diacritics in the file, then the…
ferdy
  • 7,366
  • 3
  • 35
  • 46
-1
votes
1 answer

Can't access array element even if it is shown in print_r() / var_dump()

I get the error: Notice: Undefined index: marca When I'm trying to do this: echo $data[0]['marca']; But if I print the array, like this: print_r($data[0]); The output is: Array ( [marca] => Jack&co [stock] => 10 [nome] => JW0114M2 [codice] =>…
hhz
  • 116
  • 7
-1
votes
2 answers

how to solve the error with header('Content-Type: image/jpeg')

I am facing a problem in one of my current project. Just sharing if anybody had experience on this type of problem. While i try to use the below script : header('Content-Type: image/jpeg'); the below error shows: Warning: Cannot modify header…
Shah Alom
  • 1,031
  • 1
  • 14
  • 26
-2
votes
1 answer

Unexpected token � in JSON at position 0, when reading and parsing JSON from output file

I am trying to read a json file produced by a powershell script which reads another powershell script and outputs an Abstract Syntax Tree of the that script to a json file When I try to read this output json file and parse it as json using nodejs I…
-2
votes
2 answers

Mac issue with file encoding

I have a script which is reading some data from one server and storing it in a file. But the file seems somehow corrupt. I can print it to the display, but checking the file with file produces bash$ file -I filename filename: text/plain;…
neel
  • 8,399
  • 7
  • 36
  • 50
-4
votes
1 answer

Delphi stream saving explanation

There is this code block I used for a while. Definitions: type TItem = record Code : string[255]; Description : string[255]; Warning : string[255]; Fold : integer; //position where clamp to fold, 0 = flat, about 170…
Mustafa
  • 825
  • 3
  • 14
  • 37
1 2 3
8
9