Questions tagged [utf-8]

Utf-8 is a form of character encoding that can represent every Unicode character available. It is the standard form of character encoding for the web and is also the standard in Ubuntu. It is set in a user's environment; an example for the British locale is en_GB.UTF-8.

90 questions
60
votes
5 answers

apt-get warning: No support for locale: en_US.utf8

I get this error each time I update the system using apt-get. What does this error mean? Any ideas on how to correct it? (I am running Ubuntu 11.10)
Dananjaya
  • 1,784
53
votes
3 answers

UTF-8 character not showing properly in tmux

I use ♪ character in my zsh theme's for prompt. But in tmux, my prompt was behaving weirdly, showing extra spaces, like this: ♪ ~ I can type from here ♪ ~ Instead of here like in zsh, and sometimes when I do stuff like cd ♪ ~ cd ~ ♪ ~ cdcd / ♪ ~…
Sourabh
  • 1,911
40
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?
21
votes
2 answers

Why is character "£" in a string interpreted strange in the command cut?

I'm developing a bash script and came up with the following strange behaviour! $ echo £ |cut -c 1 � The sign £ is passed to the next command cut whose filter is picking one character only. When I modify the filter in the cut command to pick 2…
19
votes
1 answer

Having problem with fonts in vim-airline

I wanted to install vim-airline but I am having problems with unicode fonts. I have installed it with vundle: .vimrc set encoding=utf-8 Bundle 'bling/vim-airline' let g:airline_powerline_fonts = 1 let g:airline_theme='powerlineish' .fonts $ ll…
Patryk
  • 9,416
17
votes
9 answers

How can I change the encoding of a subtitle file?

I downloaded a Greek subtitle for a movie, and this is what I see when I open it with Gedit. Subtitle works great on VLC, all perfect. But what if I want to edit this subtitle with some Greek words? I instantly get an error about character…
Leon Vitanos
  • 1,232
11
votes
4 answers

tr: convert apostrophe to ASCII

I'm trying to convert a Right Single Quotation Mark to an Apostrophe using tr. tr "`echo -e '\xE2\x80\x99'`" "`echo -e '\x27'`" < a > b given a UTF-8 encoded file called a which contains this example: We’re not a different species “All alone?” Jeth…
plamtrue
  • 133
11
votes
1 answer

Cyrillic characters show as gibberish in rhythmbox

I have some Bulgarian/Russian songs which have Cyrillic characters in them. Nautilus displays them fine , but in rhythmbox all their id3tag info is displayed as gibberish. I have set the system language to Russian(UTF-8) . Downloaded some program…
Infra1515
  • 148
  • 1
  • 5
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
  • 876
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?
Emad Saeed
  • 93
  • 1
  • 1
  • 3
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?
8
votes
1 answer

unicode characters do not appear in gnome terminal for vim airline

I know this has been asked a few times but none of the answers worked for me. I use the gnome terminal as default in Ubuntu 14.10 and I can't get unicode characters to show properly, mainly in vim airline. I have set character encoding to unicode…
Bastian
  • 311
7
votes
3 answers

Clementine not playing files with certain characters in the name

Last week I ripped some cds in morituri and rhythmbox. Everything seemed fine except for one cd. After a few tracks I got some weird error while ripping (to FLAC) with morituri, so I ripped the rest of that cd with rhythmbox. Afterwards Clementine…
7
votes
1 answer

Conflict between variable substitution and CJK characters in BASH

I encountered a problem with variable substitution in the BASH shell. Say you define a variable a. Then the command $> echo ${a//[0-4]/} prints its value with all the numbers ranged between 0 and 4 removed: $> a="Hello1265-3World" $>…
AndreasT
  • 361
6
votes
1 answer

Apply iconv to all of the files in a directory

While trying to convert a collection of .srt files: iconv -f cp1256 -t utf-8 directory/* > target/* it converts all of the 22 files in the directory to one file in the target directory called *. I want the processed files to appear separately in…
quetzal
  • 63
1
2 3 4 5 6