Questions tagged [character-encoding]

Character encoding refers to the way characters are represented as a series of bytes

Character encoding is the act or result of representing characters (human readable text) as a series of bytes (computer readable zeroes and ones).

A useful reference is The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)

See also

139 questions
22
votes
4 answers

How to input special character, such as Celsius symbol, and common greek letters?

I want to input: Celsius degree symbol Common Greek letter: Alpha, Theta, Omega
Nick
  • 4,423
  • 4
  • 24
  • 41
13
votes
4 answers

How to display Unicode UTF-8 as Unicode?

I have some UTF-8-encoded text files which display strange escape codes in Emacs. For instance, this text: In ista quaestione primo exponam quid intelligendum est per hoc nomen ‘Deus’; secundo, respondebo ad quaestionem. Shows like this in…
NVaughan
  • 1,481
  • 12
  • 27
12
votes
3 answers

How convert txt file to UTF-8 from Windows-1251?

Windows 10, Emacs 25. When I want to convert file from Windows-1251 to UTF-8 I use Notepad++. Before convert: convert: after convert: My question is: Is it possible this convert in Emacs?
Alex
  • 781
  • 2
  • 7
  • 18
12
votes
3 answers

Set default coding system = UTF-8

Windows 10 (64 bit), Emacs 25.1 I want when I save any file to save them (by default) with coding system = UTF-8. So In my init.el I has : (prefer-coding-system 'utf-8) (set-default-coding-systems 'utf-8) (set-language-environment…
Alex
  • 781
  • 2
  • 7
  • 18
10
votes
3 answers

Package manager encoding error

Upon running package-list-packages, I get the following error. These default coding systems were tried to encode text in the buffer ` *temp*': (iso-latin-1-dos (3242 . 37326) (3243 . 40165)) However, each of them encountered characters it couldn't…
Matthew Piziak
  • 5,958
  • 3
  • 29
  • 77
10
votes
3 answers

Using UTF8 encoding as default when writing emails

When I want to send an email I composed in Emacs, I press C-c C-c and am always presented with such an error message: These default coding systems were tried to encode text in the buffer `2015-02-03_19:08:30_1': (utf-8-unix (302 . 4194243) (303 .…
Damien Cassou
  • 877
  • 4
  • 14
10
votes
1 answer

How can I save UTF-8 files with a Byte Order Mark?

I am trying to configure Emacs to save UTF-8 files with a Byte Order Mark. (Yes, I know that the BOM is evil and unnecessary for UTF-8 files. However, Microsoft has decided they know better, so I want to make sure I'm able to save files with…
Scott Weldon
  • 2,695
  • 1
  • 17
  • 31
9
votes
1 answer

How to get human language-specific numerals?

TL;DR: how can I use Hindi digits (١٢٣...) when writing in Arabic? Emacs is arguably hailed as the best editor, but when it comes to using numerals in the context of writing there are no satisfactory solutions to this problem for multilingual users…
doctorate
  • 1,789
  • 16
  • 39
9
votes
2 answers

How to change octal sequences into utf-8 text

When I copy non-ascii text from Windows and paste into Emacs, it shows up as an octal sequence. For example, if I paste ä into Emacs it shows up as \344. I could type C-q 344 to get the ä back in Emacs. That's annoying, but it's tolerable if there's…
9
votes
1 answer

Emacs is asking me for a coding system on each save

I consolidated many text files (win, mac, unix) into a single orgmode file. For some characters I was seeing numbers instead of the right characters. Things like \314\203. I used "revert-buffer-with-coding-sytem" and choose utf-8-hfs-unix. That…
Jason Mirk
  • 713
  • 3
  • 15
9
votes
1 answer

Coding System utf-8 on Mac - Which one and why as default?

I want to change my default encoding system from non defined to UTF-8 (I think that would be useful). Now I have seen many different UTF-8 coding systems: mule-utf-8 mule-utf-8-dos mule-utf-8-mac mule-utf-8-unix prefer-utf-8 …
Rainer
  • 897
  • 10
  • 16
7
votes
3 answers

単 does not show up in Emacs, how to fix?

I'm editing a text file containing Japanese kanji characters. 単 does not show up in Emacs, how to fix? It shows up as some sort of white space. Update: I'm using GNU Emacs 24.3 (9) for Mac. After examining my .emacs, I actually copied from someone…
qazwsx
  • 569
  • 3
  • 12
6
votes
2 answers

Emacs doesn't let me exit without selecting a coding system

Sometimes to speed up of opening an emacs' eshell directly from terminal (in my case from MS DOS prompt), I do emacs -Q -f eshell. But when I try to exit emacs doesn't let it, unless I give some input to the below message in the mini-buffer. select…
Name
  • 7,689
  • 4
  • 38
  • 84
6
votes
1 answer

Why must I set and reset `buffer-multibyte` to correctly view multibyte buffers?

In an ongoing project, we are inserting multibyte text into a buffer and experiencing strange behavior. When the question is first viewed, we receive something like: Quote Environment à la Strunk\341\200\231s \342\200\230The Elements of…
Sean Allred
  • 6,861
  • 16
  • 85
6
votes
3 answers

How to get rid of BOM (byte order mark)

How can I open a file with a BOM Byte Order Mark and ensure that BOM is gone when I save the file.
Dan King
  • 61
  • 2
1
2 3
9 10