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.

learn more… | top users | synonyms

11
votes
4answers
499 views

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 ...
1
vote
0answers
32 views

how to encode a shell script so others can run it but they can not read it

I want to encode a script, so others can run that script to get relevant result but when they run command cat it should throw output in encoded format.
0
votes
1answer
25 views

Issue on mounting partition

So, I just got some issue on a Ubuntu 12.04.2 VM. At boot, I wasn't able to mount my /data2 partition. DMESG: [ 4.319405] EXT4-fs (sdb1): Unrecognized mount option "utf8" or missing value ...
0
votes
3answers
1k views

apt-get ends up with errors after nvidia 331 installation

I recently installed nvidia-331 driver via Software & Updates -> Additional Drivers tab. Now when I use: sudo apt-get install <package> or sudo apt-get remove <package> ...
0
votes
0answers
138 views

Mass convert files to UTF-8 without renaming, and not converting any “wrong” encodings by mistake

Ok, so this is a headache and I have found no solutions to this problem at all. I have a buch of files (over 50 000), and I would like to convert them to UTF-8 without renaming them to .utf8 or ...
2
votes
1answer
93 views

UTF-8 Issue, don't know where?

I am running a node.js server and the following line just isn't working. console.log("☺☻♥ مرحبا 你好"); I opened up the file in nano and cat on my ubuntu server 14.04 (no gui, no window manager, no ...
2
votes
0answers
83 views

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?
7
votes
3answers
917 views

Clementine not playing certain files

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 ...
1
vote
0answers
204 views

Problem with characters encoding in bash in 12.04 new install?

I just installed Ubuntu 12.04.4 64 bits, all seemed to be ok, when I started to work on console I noticed: that I couldn't get some accented characters typed in to the console, for example, if I ...
1
vote
1answer
676 views

Console doesn't show pretty UTF-8 characters in Shell

I want to write some pretty, special characters taken from Web in my Shell Console with echo command. I want to write, for example, ▲ character, but it shows me ��� character. How can I solve the ...
2
votes
0answers
285 views

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 ...
4
votes
1answer
2k views

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 = ...
0
votes
2answers
654 views

ubuntu locale difference between zh_CN.utf8 and zh_CN.UTF-8

There are some questions about Linux locale confused me much. What is the difference between zh_CN.utf8 and zh_CN.UTF-8 ? Are they the same locale ? Run locale command: LANG=zh_CN.UTF-8 ...
9
votes
1answer
286 views

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 ...
1
vote
0answers
122 views

libiconv crossplatform usage?

I'm trying to make my own tiny string class that takes UTF-8 encoded strings from server and converts it to local string encoding, so that it could be easily used with native API functions (WinAPI on ...
0
votes
1answer
2k views

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 *. ...
2
votes
1answer
2k 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 ...
2
votes
2answers
8k views

Full switch locale: Ubuntu server installed with no locales, how to enable locales systemwide?

I have a server with no X, installed with no locales. There is a "C" locale. I need to: run server scripts (no console involved) to copy, move and gzip files towards local ext4 file-system, which ...
2
votes
1answer
1k views

Unicode problem in konsole

I have a problem with text encoding in konsole (I also tried xterm, things are the same) (Kubuntu 13.04, KDE). Here is the sample output: oleg@PrizoffN:~$ gg gg: ...
8
votes
5answers
24k views

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 ...
3
votes
2answers
541 views

How to batch convert legacy files to UTF8?

I think the ideal solution for me is a Nautilus Script that performs encoding conversion on selected files. The following script reads the encoding of a selected file and performs utf8 conversion if ...
6
votes
1answer
140 views

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 ...
2
votes
3answers
2k views

Convert a (txt|srt) document from Western(ISO-8859-15) to UTF-8

I am having problems with subtitles in my language. They are encoded as Western(ISO-8859-15) and therefore some characters are not displayed correctly. I am tired of replacing manually using gedit ...
1
vote
1answer
836 views

install Chinese(and other utf-8) fonts for Xvfb?

I have installed these packages: apt-get install xvfb xfonts-base xfonts-75dpi xfonts-100dpi firefox But in my Firefox in Xvfb on Ubuntu Server, the Chinese characters look like: How to install ...
9
votes
1answer
2k views

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 ...
1
vote
1answer
1k views

Ubuntu 12.04 Google-earth install anomaly

I tried out more methods: the result was identical. No way UTF-8 to set characters. It lsb-core and the ttf-mscorefonts packets are installed. I cannot reach it, that it UTF-8 letters the ...
0
votes
1answer
996 views

Change File Encoding Info

I'm having some trouble uploading text files using sftp. The trouble is, that the files on my (windows) client are utf-8 encoded, but after the upload they seem to be us-ascii encoded (at least file ...
17
votes
3answers
31k views

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)
2
votes
2answers
668 views

How to convert a Mac UTF-8 .xml file into something that Banshee understands?

I've been trying to import my iTunes library to Banshee but Banshee will not find songs that contain latin accents. It imports most songs just fine except the ones that contains accents like é, è, ç, ...
0
votes
1answer
289 views

Weird Characters On gzip Package

I'm trying to gzip my js files which in js folder. gzip -cr js I'm using this command on Terminal but this is result: 8�H�Q�YUG�`]{_��a"G9xj�C�!��Y �c�S�ؙ�SY�}���-mU�����w��@f�x�� ...
2
votes
1answer
4k views

How to add UTF-8 support to my hard disk in fstab?

I use Ubuntu (Spanish language). Sometimes I get this error when I use special characters (codification error) so I read that if I edit a file of my hard disk by using gedit /etc/fstab and adding utf8 ...
3
votes
3answers
356 views

How do I switch to Unicode entry mode?

I am trying to switch into Unicode entry mode using Ctrl + Shift + U, but after I hit this combination nothing happens. I also tried Ctrl + U, Ctrl + Alt + U. Do I need to enable this mode anywhere? ...
3
votes
3answers
6k views

gedit can't recognize character encoding, but gvim can

I have a lot of plain text files which come from a Windows environment. Many of them use a whacky default Windows code-page, which is neither ASCII (7 bits) nor UTF-8. gvim has no problem opening ...