Linked Questions
55 questions linked to/from Best way to convert text files between character sets?
1 vote
0 answers
166 views
how to convert java class encoding to utf-8 [duplicate]
i'm working on a java project and i have a package that contains many clasees (more than 100 files) some files are not saved with utf-8 and this cause some problem in the compilation proccess.. my ...
67 votes
11 answers
255k views
How do I correct the character encoding of a file?
I have an ANSI encoded text file that should not have been encoded as ANSI as there were accented characters that ANSI does not support. I would rather work with UTF-8. Can the data be decoded ...
57 votes
9 answers
176k views
How to convert ISO8859-15 to UTF8?
I have an Arabic file encoded in ISO8859-15. How can I convert it into UTF8? I used iconv but it doesn't work for me. iconv -f ISO-8859-15 -t UTF-8 Myfile.txt I wanted to attach the file, but I don't ...
50 votes
5 answers
115k views
Powershell: Setting Encoding for Get-Content Pipeline
I have a file saved as UCS-2 Little Endian I want to change the encoding so I ran the following code: cat tmp.log -encoding UTF8 > new.log The resulting file is still in UCS-2 Little Endian. Is ...
25 votes
9 answers
76k views
What does "Failed to execute operation: Invalid argument" mean when running systemctl enable?
I've created a systemd service file (specifically for svnserve; I'm actually using the example from here https://stackoverflow.com/a/40584047/464087), and when I enable it, typing sudo systemctl ...
27 votes
8 answers
58k views
iconv any encoding to UTF-8
I am trying to point iconv to a directory and all files will be converted UTF-8 regardless of the current encoding I am using this script but you have to specify what encoding you are going FROM. How ...
14 votes
3 answers
21k views
Charset conversion from XXX to utf-8, command line
I have a bunch of text files that are encoded in ISO-8851-2 (have some polish characters). Is there a command line tool for linux/mac that I could run from a shell script to convert this to a saner ...
9 votes
1 answer
58k views
How to convert a file from ASCII to UTF-8?
I'm trying to transcode a bunch a files from ASCII to UTF-8. For that, I tried using iconv: iconv -f US-ASCII -t UTF-8 infile > outfile -f ENCODING the encoding of the input -t ENCODING the ...
10 votes
3 answers
29k views
Change encoding in Eclipse
I was working on my project in Windows using Eclipse (and I didn't check that my encoding was CP-1251). Now am going to work with my project in Linux with Eclipse too, but with UTF8 encoding, so all ...
3 votes
4 answers
67k views
error! C:\file\example.db is not UTF-8 encoded ipython notebook
please help! I am using sqlite3 in ipython notebook to create an SQL database. I think I have successfully created the database, but when I go to look at it I am receiving an encoding UTF8 error. Here ...
5 votes
3 answers
9k views
Text corrupt after changing the Eclipse to UTF-8 Encoding
I had to change the Eclipse Indigo encoding to UTF-8. Now all the spécial characters as éàçè are replaced with �. I can do a search and replace but I wonder if there is better solution. Thanks
5 votes
3 answers
5k views
PHP - imagepng not working properly
Well guys, first, here is my code: <?php ob_start(); $pilot_id = $_GET['id']; //-- Server Variables $dbServer = 'localhost'; $dbUser = 'root'; $dbPassword = '*************';...
0 votes
2 answers
3k views
C Compiling: error: stray '\4' in program ; octal flow?
I am trying to compile a load of .c files. (1) The files compile OK, using cc cc -Wall -Wextra -Wunreachable-code -ggdb -O0 *.c (2) Then, I need to make a static library from the final output, to use ...
4 votes
1 answer
10k views
Pandas ValueError: 'Date' is not in list
I am going through the Pandas "cook book" chapter 1, bikes.csv example. When I try to change parse_dates to ['Date'], dayfirst=True, index_col to date like this: (at line: In [6], in the cook book's ...
0 votes
2 answers
14k views
How to output extended ascii characters using Oracle utl_file
I was writing files using l_file := utl_file.fopen('OUT', 'a.txt', 'w'); utl_file.put_line(l_file, 'Rosëttenville'); but I changed this to l_file := utl_file.fopen_nchar('OUT', 'a.txt', 'w', 32767);...