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

How to display IBM mainfrance charset in IntelliJ (EBCDIC?)

I'm using IntelliJ and when I open data files in the editor, I can use the "character set" selector at the bottom right of the window to reload the file and display it in the appropriate charset For example, I can switch between UTF-8, ISO-8859-1…
vikingsteve
  • 38,481
  • 23
  • 112
  • 156
1
vote
2 answers

Tomcat 7 log contains "-Dfile.encoding=Cp1252": where does it come from?

I have a Tomcat 7.0.69 instance running inside Eclipse for Java (not JEE) 4.5.2 on Windows 10 - although I saw this on a JEE IDE or in other 7.0.x versions of Tomcat too. When I start a server instance in debug mode, I have this line in the console…
watery
  • 5,026
  • 9
  • 52
  • 92
1
vote
0 answers

LESS compilation errors using Visual Studio 2015 and Koala

I am using the official bootstrap LESS files and am modifying them in Visual Studio 2015. I'm using Koala as my LESS compiler, and it's worked fine until I started making changes in variables.less. For instance, looking at narbar.less, Visual Studio…
1
vote
2 answers

How to determine file-encoding of file on hdfs (Azure blob storage)?

I've got a bunch of 100GB files on hdfs with mixed file-encodings (unfortunately in Azure blob storage). How can I determine the file encodings of each file? Some dfs command-line command would be ideal. Thanks.
conner.xyz
  • 6,273
  • 8
  • 39
  • 65
1
vote
1 answer

c# change file encoding without loading all the file in memory

I need to change a file's encoding. The method that I've used loads all the file in memory: string DestinationString = Encoding.ASCII.GetString(Encoding.ASCII.GetBytes(File.ReadAllText(FileName))); File.WriteAllText(FileName, DestinationString, new…
Buda Gavril
  • 21,409
  • 40
  • 127
  • 196
1
vote
1 answer

Filename encoding issue in Python3 linux

I am using below snippet to read the file and use the data to download from a cloud. This code perfectly fine in windows and Mac too. But script fails while running the script in ssh by logging in an linux instance. Later I used below command to…
Srikanth Bhandary
  • 1,707
  • 3
  • 19
  • 34
1
vote
1 answer

Why does this text decoded in 2 different ways not match in GWT?

I've been trying to track down why my Russian translations are not appearing correctly in the GWT version of my game. I've narrowed it down to something going wrong with the decoding of the file. This code works correctly outside of the GWT…
Will Calderwood
  • 4,393
  • 3
  • 39
  • 64
1
vote
3 answers

Perl and reading files with different encodings

I am using a perl script to read in a file, but I'm not sure what encoding the file is in. Basically, my file is a list of book titles, but each book has other info associated with it (author, publication date, etc). So each book title is within a…
Tony Stark
  • 24,588
  • 41
  • 96
  • 113
1
vote
0 answers

^M characters in MANIFEST.MF file generated using gradle

Cross posting from http://forums.gradle.org/gradle/topics/_m_in_manifest_mf_file_generated_through_gradle I am seeing a problem with the jar manifest file in my gradle project. I am generating a manifest file for the jar in my build as…
bhooshan
  • 84
  • 4
1
vote
1 answer

UTF-8 file encoding in R

I have a .csv file which should be in 'UTF-8' encoding. I have exported it from Sql Server Management Studio. However, when importing it to R it fails on the lines with ÿ. I use read.csv2 and specify file encoding "UTF-8-BOM". Notepad++ correctly…
Mace
  • 1,259
  • 4
  • 16
  • 35
1
vote
3 answers

Is it safe to temporarily store UTF-8 strings as ISO-8859-1 in Java?

I have a properties file that is encoded as UTF-8 called theProperties.properties: property1=Some Chinese Characters: 会意字會意字 property2=More chinese Char - 假借 property2= I use a resource bundle to pull in the…
sixtyfootersdude
  • 25,859
  • 43
  • 145
  • 213
1
vote
2 answers

Converting a string rappresentation of a file (byte array) back to a file in C#

As in the title I'm trying to convert back a string rappresentation of a bytearray to the original file where the bytes where taken. What I've done: I've a web service that gets a whole file and sends it: answer.FileByte =…
misleadingTitle
  • 657
  • 6
  • 21
1
vote
1 answer

What project encoding I must set in Netbean project property to open files encoded using the DOS character set (Code page 437)?

The problem is that I don't see any encoding in the drop-down list of available encodes on Netbean project property that match any of the names that DOS character set have. I have installed Netbean PHP, but I don't think that make any different.
user1785721
1
vote
1 answer

Chinese chars not displayed properly when Puppet starts Tomcat, works when manually started

So here's a fun one... We have a file upload through Fatwire that stores files on a Unix file system. Fatwire uses Tomcat under the covers. A Puppet agent handles our jar deployment and restart. When uploading an image file that has Chinese chars…
1
vote
0 answers

File encoding for chinese

I have my android application localized to english, czech and couple of other european languages. I would like to add chinese, japanese, korean and russian localizations. Is there any special way to do that in terms of file encoding and so on?
Perry_ml
  • 495
  • 5
  • 16
1 2 3
8 9