Questions tagged [encoding]

A method of representing characters (such as A, 9, %, ழ, ♦, and non-printing control characters) for storage and communication. The Unicode standard provides a code point (number) for each of over 100,000 different characters, and the standard is implemented by character encodings such as UTF-8, widely used in Linux systems. The first 128 Unicode code points are the ASCII characters, which UTF-8 represents with 1 byte per character.

Filter by
Sorted by
Tagged with
43 votes
8 answers
63k views

How can I encode and decode percent-encoded strings on the command line?

How can I encode and decode percent-encoded (URL encoded) strings on the command line? I'm looking for a solution that can do this: $ percent-encode "ændrük" %C3%A6ndr%C3%BCk $ percent-decode "%C3%...
ændrük's user avatar
  • 76.7k
4 votes
1 answer
1k views

How can I know the encoding Gedit assumes for a given file?

It appears that there are at least two questions here on Ask Ubuntu that are similar to this, but neither has been answered. How can I find out the encoding method that gedit uses to open a text file?...
Timo's user avatar
  • 95
14 votes
5 answers
13k views

Running a script created in Notepad (Windows) on Ubuntu

I created a Notepad file on Windows and copied it to Ubuntu. The file contains some iptables rules. After making the file executable using chmod +x and executing it, it didn't work. However, when I ...
Albert's user avatar
  • 145
9 votes
4 answers
18k views

How to read ANSI encoded files in the right way?

I have some files that Ubuntu can't read it ( ANSI encoding ) but Windows can read it well. When I open it in gedit or notepad++ it seems like this : Êã ÇáÊÍæíá áÜÜ How can I make Ubuntu read ...
Emad Saeed's user avatar
1 vote
3 answers
1k views

Ubuntu 20.04 installation gave my terminal all squares with 4 characters in them

After installation of Ubuntu 20.04 my terminal characters shifted to some kind of squares with hex codes in them. I am not able to find out how to get back to normal. Any suggestions?
Joachim's user avatar
  • 101
14 votes
2 answers
28k views

How to unzip a Japanese ZIP file, and avoid mojibake/garbled characters

I received a ZIP file from a Japanese customer. When I try to unzip it the file and folders names are messed up: $ unzip ~/Downloads/【新入荷ECM】資料.zip ... inflating: БyРVУ№Й╫ECMБzОСЧ┐/123_ГЖБ[ГXГPБ[ГX....
Nicolas Raoul's user avatar
12 votes
2 answers
33k views

How do I install the opus audio encoder?

I would like to try out the opus audio encoder, but can't find it in the repositories. Can anyone here help me get it installed on my computer? I have some wav files which I would like to convert to ...
oshirowanen's user avatar
  • 3,977
6 votes
4 answers
13k views

Encoding and decoding error in non-English name of compressed file

I have a rar file. After extraction, it generates a file with Chinese name which is shown in Nautilus as: ��������ѧ.������.����������ѧ������.2008.djvu (invalid encoding) In terminal it is shown as:...
Tim's user avatar
  • 25.2k
4 votes
2 answers
3k views

Cannot read filenames that are in utf8 encoding (Greek characters)

I've downloaded some files using "Download as .zip" option provided by Dropbox. The filenames contain Greek characters. I've extracted them and all I get is this: 2013 ΧειμεÏινÏ.pdf The files ...
Chris's user avatar
  • 1,153
1 vote
3 answers
184 views

Accessing a folder that I can't "name" in the shell

I have a stubborn folder that someone must have created accidentally and that has persisted all this time. I can see it with: # find /var/www/html -maxdepth 1 -type d which gives me: /var/www/html /...
0xC0000022L's user avatar
  • 5,720
26 votes
6 answers
67k views

Switch encoding of terminal with a command

One of the servers I quite often ssh to uses western encoding instead of utf-8 (and there's no way I can change that). I've started writing a bash script to connect to this server, so I won't have to ...
Tomas Aschan's user avatar
  • 2,922
8 votes
4 answers
9k views

Chinese encoding in names of compressed files in zip

Sorry for asking a question similar to my previous one. The difference from the last question is that now it is in a zip archive where Chinese encoding in names of compressed files are not recognized,...
Tim's user avatar
  • 25.2k
8 votes
4 answers
21k views

Character encoding problem with filenames - find broken filenames

I have the problem described in this Q&A. Probably from quite old linux distros or from windows I have several files with broken filenames. ls displays a "?" instead of the broken character. I ...
lumbric's user avatar
  • 3,994
6 votes
2 answers
4k views

How to convert AC3 6ch audio to HE-AAC? GUI solution?

I want to convert the audio track of a MKV file to HE-AAC (AAC+/AACplus). The audio track is AC3. But there seems no GUI for HE-AAC encoding? I only found out there is a Command Line Tool (CLI) from ...
sexygirl85632's user avatar
4 votes
2 answers
1k views

Is there a way to tell what encoding is used for the name and content of a file?

Is there a way to tell what encoding is used for the name and content of a file? Both GUI and terminal solutions (preferred) are fine. Thanks and regards!
Tim's user avatar
  • 25.2k
4 votes
0 answers
608 views

How does gedit detect the encoding of a text file? [duplicate]

How does gedit detect the encoding of a text file when opening it? I notice that gedit can always find the correct encoding when opening a text file of mine, while chardet can often fail to and emacs ...
Tim's user avatar
  • 25.2k
3 votes
1 answer
14k views

Ubuntu display Chinese Characters - Encoding Issue

I'm running a Ubuntu 14.04 32 bit. I'm facing a strange problem displaying Chinese characters in terminal, files, MySQL terminal etc. The Chinese characters are displaying as ?????. After some ...
user3066279's user avatar
3 votes
2 answers
1k views

w3m charset source_dump not working correctly

I am trying to use the following command but can't get the right output: $ w3m -dump_source google.com r���G��2�Ph��ү�f�� ����?�l���%Y:���c(�����������Y\��s8Ư| ��;����1ʹ��D��^�lK���٥r��\���Սk�V��Ϸv�...
Andrey Fugas's user avatar
3 votes
2 answers
3k views

How to detect current gnome-terminal character encoding?

I am trying to detect the current gnome-terminal character encoding from the command line. I have tried using gconftool : $ gconftool-2 --get /apps/gnome-terminal/profiles/Default/encoding current $ ...
Håkon Hægland's user avatar
2 votes
0 answers
369 views

How can I find out the encoding method that gedit uses to open a text file? [duplicate]

Gedit successfully guessed the correct encoding charset of a text file. I would like to find out what the charset is, but couldn't find a way in its menu. How can I do that? Thanks.
Tim's user avatar
  • 25.2k
2 votes
2 answers
1k views

Why doesn't the faac package support mp4?

In Ubuntu 13.10, faac doesn't support MP4. If you run faac --help you get: Freeware Advanced Audio Coder FAAC 1.28 Usage: faac [options] infiles ... Options: -q Set ...
Johny's user avatar
  • 133
2 votes
1 answer
6k views

Convert files to UTF-8 without BOM

I have a file in Hebrew, which is displayed now as Gibberish. On windows, what I've done at the past, I just converted the file using Notepad++ > Encoding > Convert to UTF-8 without BOM and then ...
Luis's user avatar
  • 31
2 votes
1 answer
2k views

How do I produce great quality AAC files under Xenial Xerus?

I would like to produce high quality AAC files from a small library of wav files under Xenial Xerus 16.04 LTS. I am keen to be able to select between AAC-LC, HE-AAC and HE-AAC v2 for the output files....
andrew.46's user avatar
  • 38k
2 votes
1 answer
2k views

corrupt file after power failure

I just had a power failure while I was working on a text file (specifically a latex .tex file). I had been saving regularly - so wasn't too worried about lost work. But now I can't actually use the ...
djmac's user avatar
  • 121
2 votes
3 answers
4k views

Terminal broken characters

It doesn't matter if gnome-terminal or xfce4-terminal is used, I got always some broken characters in my terminal window. Specs: Ubuntu 15.10 Ubuntu Mono, UTF-8 encoding ZSH Any tips would be ...
onigunn's user avatar
  • 123
1 vote
1 answer
1k views

Unicode (Hebrew) typing: Works in some applications but not others

Recently installed Ubuntu 14.04 (Kubuntu, incidentally; but I experience this issue with both gnome-terminal and Konsole). I have Hebrew selected as a language and as an input method. When I try to ...
Isolated Ostrich's user avatar
1 vote
2 answers
2k views

Ubuntu 13.04 can't read Arabic texts [duplicate]

I'm using Ubuntu 13.04 , it can't read Arabic letters and words properly. that what I get when I open files contains Arabic, please notice that same files are showed correctly on windows: ÇáÞÇäæä ...
user193902's user avatar
0 votes
1 answer
337 views

How to install kompozer on xubuntu after downloading

I downloaded kompozer from the official site and i extracted the files, but I don't have an executable file. How do I run it(or set it up) from the terminal?
elise g's user avatar
  • 11
0 votes
1 answer
807 views

Borked encoding in Ubuntu 13.04 for Slovak language

I'm having the same issue as described here. A workaround, that does not work, as I got to know here, since Ubuntu no longer uses locale.gen, has been suggested in the same thread. Can someone advise?...
SNH's user avatar
  • 963