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.

194 questions
46
votes
8 answers

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%A6ndr%C3%BCk" ændrük
ændrük
  • 78,726
41
votes
4 answers

How can I see which encoding is used in a file

I had some problems with subtitle files in video omxplayer. To solve it I had to convert from windows-1250 to UTF-8 encoding. My question is, how can I see for some specific file which encoding is used?
26
votes
6 answers

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 type out the entire address every time, but I…
Tomas Aschan
  • 2,952
24
votes
8 answers

Convert Text File Encoding

I frequently encounter text files (such as subtitle files in my native language, Persian ) with character encoding problems. These files are created on Windows, and saved with an unsuitable encoding (seems to be ANSI), which looks gibberish and…
18
votes
3 answers

Cannot delete/move files with special characters in file name

As you can see below the files have uncommon characters. Deleting them either in the terminal or Dolphin returns the error: No such file or directory Running ls -la on the directory gave me this output: -rw-rw-r-- 1 aalap aalap 0 Nov 14 01:05 ??…
15
votes
2 answers

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.xlsx What is the problem, and how to avoid it?
Nicolas Raoul
  • 11,941
15
votes
4 answers

Convert DVD to MKV (et al) without transcoding/recompression

Like a lot of people, I have a lot of DVDs. But we also have a stupid amount of disk space and a media centre (Boxee) so the DVDs are getting less and less use. It would be nice to convert our DVDs into something more relevant to our needs. I've…
Oli
  • 299,936
14
votes
5 answers

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 created a Ubuntu ( gedit ) file and copied the same…
Albert
  • 145
14
votes
3 answers

How to rename file names to different encoding?

I have 3 types of file name encodings on reiserfs mounted hard drive: CP1251, KOI-8, UTF-8 and ASCII. I really need to convert all encodings to UTF-8, recursively. Is there any utility, which will detect source encoding and convert it to UTF-8 or I…
Pablo
  • 2,617
13
votes
3 answers

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 the opus audio format. However, I have found this…
oshirowanen
  • 4,077
10
votes
4 answers

What players do support flac files with embeded cue sheet?

I recently got some FLAC files with embeded cue sheet. Though, the info of the sheet file doesn't seem to show up in Rhythmbox; Banshee; Amarok or Audatious. Which media players support this kind of file?
10
votes
1 answer

ubuntu å vs osx å?

Not sure if this is a ubuntu or osx question, but I'll start here. I'll leave it to the mods to move the question to AskDifferent if more apropriate. I moved a file from ubuntu to osx using scp on the apple machine. I edited the file on the apple…
azzid
  • 884
9
votes
4 answers

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 ANSI encoded files well?
9
votes
0 answers

Why does apache2 default to LANG=C instead of UTF8 or system default

The 10-year-old comment in /etc/apache2/envvars simply says "The locale used by some modules like mod_dav", but why can't mod_dav be fixed to also handle a better LANG setting for the rest of apache?
9
votes
4 answers

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 successfully renamed some of these files, but I don't…
lumbric
  • 4,139
1
2 3
12 13