Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [unicode]

Unicode is a standard for the encoding, representation and handling of text with the intention of supporting all the characters required for written text incorporating all writing systems, technical symbols and punctuation.

1
vote
1answer
35 views

use euro symbol (or any symbol) for emacs keybinding

I set up this duplicate line function: https://kundeveloper.com/blog/duplicate-line/ and bound it to the euro symbol like this: (global-set-key (kbd "M-€") 'duplicate-line) And it worked (for a ...
1
vote
0answers
42 views

Org-ellipsis displayed inorrectly for some headlines only

So in order to customize my org mode files, I have (setq org-ellipsis "⤵") in my config, which seems to be a very popular customization (the arrow being U+2935). This works correctly for the most ...
0
votes
1answer
87 views

Org mode bullets

I am using org-bullets package but the rendering of unicode bullets doesn't seem correct to me. I tried changing the to different fonts without any success. Also I can't find anything related to ...
4
votes
1answer
46 views

Compose characters

I have some copied text from a pdf which renders like this with my current font: I know I could use a different font that handles Unicode characters better, but I would rather find a function to ...
4
votes
2answers
129 views

Inserting the plus minus unicode symbol ± as a keyboard macro

I insert the plus minus symbol ± frequently enough that I want to bind it to a key. From emacs -Q, I've tried this: (global-set-key (kbd "C-c m") "±") However, when I enter C-c m, the minibuffer ...
1
vote
0answers
56 views

Wrong unicode glyphs in emacs?

I recently came across a python file "*.py" containing several prints consisting of unicode symbols. I noticed that several symbols are displayed with different glyphs in emacs than in another editor. ...
2
votes
2answers
190 views

What is the equivalent code of a Unicode character

For example I know that 2018 is the hexadecimal equivalent of left single quotation mark, and I have the following questions: 1: Is there a way to input the Unicode name to Emacs and get the ...
2
votes
1answer
132 views

How can I have same font and font-size everywhere?

I'm tired of the weird (seemingly) unpredictable font behavior not just in org-mode but also anywhere I use some unicode symbols. My setup is spacemacs and I'm looking for function that I can run on ...
2
votes
2answers
74 views

Greek typing & spell-checking with hunspell: encoding issue?

hunspell-checking Greek text I create in Emacs is not working. Notes: I am aware of this post: Spell check with multiple dictionaries Eventually, I want to use ispell with hunspell in Emacs, which ...
4
votes
2answers
129 views

How can I find non-displayable unicode characters in a buffer?

I mean these: I'd like to remove them, so I'm looking for a function which can find all these characters in the buffer which cannot be displayed properly with the current font and therefore show up ...
5
votes
2answers
105 views

Combining diacritics not combining visually

The first two characters in the left buffer are LATIN SMALL LETTER A and COMBINING CIRCUMFLEX ACCENT. Together they should display as â, just like LATIN SMALL LETTER A WITH CIRCUMFLEX, â. However, ...
3
votes
2answers
50 views

(ucs-names) in Emacs 26 is not working for “EURO SIGN”

I have in my .emacs: (when (>= emacs-major-version 23) (define-key global-map "\C-x8g" (lambda nil (interactive) (ucs-insert `,(cdr (assoc-string "HRYVNIA SIGN" (ucs-names) t))))) (define-key ...
4
votes
1answer
436 views

Insert character by its Unicode name

From the documentation of insert-char, I cannot see why (insert-char "GREEK SMALL LETTER EPSILON") doesn't work. Is there a non-interactive way to insert a character given its Unicode name?
0
votes
1answer
72 views

Function that returns the name of a Greek vowel

I'm trying to write a function that will return the name of a Greek vowel: alpha or epsilon etc. I was hoping this could be done by extracting it from the second group in the following regexp (in a ...
0
votes
1answer
27 views

Re-align text after a bigger symbol

I'd like to customize a bit mu4e in order to display nice utf-8 chars (or still better, colored emojis). However, the problem is that the utf8 chars does not have the good width (even in the mono ...
-1
votes
0answers
22 views

Representation of text as unicode symbols for differential equations in code

I'm running the Ubuntu Mate LTS version of emacs "GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2017-09-20 on lcy01-07, modified by Debian" I've been working with matlab-mode on ...
1
vote
1answer
66 views

Display glyphs instead of codepoints

I have a JSON file where Unicode characters are encoded as UTF-8 codepoints, example: \u05de instead of the Hebrew character Mem (מ). How could I get emacs to display glyphs instead of the codepoint ...
3
votes
2answers
137 views

Greek (Unicode) in Org mode export to PDF

I am working on a project that deals with polytonic Greek, and wish to write everything in Org mode, and export to a PDF with one of the compilers (like XeLaTeX). I have spent hours today reading ...
0
votes
0answers
16 views

Change line length calculation of a certain character displayed with multiple glyphs

I am differentiating em-dashes (—) from hypens (-) in emacs using this code in my .emacs: (let* ((glyph-em-dash (make-glyph-code ?\u002D 'font-lock-function-name-face)) ) (aset standard-...
2
votes
1answer
99 views

Jump to and highlight characters matching regex

How can I jump to the next character matching a regex (see example below)? And if possible, enable highlighting of all the matching characters in the buffer when I jump for the first time. [^\x20-\...
1
vote
2answers
215 views

How to search for any unicode octal character in a buffer?

I'm looking for a way to locate all unicode octal characters in a buffer such as \344 and replace them with ä or \353 with ë, etc. At the least if I could just locate octal characters using ...
2
votes
1answer
625 views

Spacemacs mode-line unicode characters: what do they mean?

I've found it hard to discover the source or meaning of the unicode characters in the mode-line. All questions I've found referencing them are about how to get them to display correctly --- e.g. this ...
1
vote
1answer
78 views

Org tangle source blocks to a file with byte-order-mark (BOM) from org mode

Because Firefox doesn't load local files with UTF8 characters like '📞, …, 🖥' in the HTML or the CSS correctly, since it does not receive a <meta charset="utf8" /> header, I need to tangle ...
1
vote
1answer
47 views

How to put a right arrow above a Latin letter?

I want to write: ⃗E, I tried to C-x 8 <RET> COMBINING RIGHT ARROW ABOVE <RET> E it is displaying in Emacs like: I want to use Unicode (without Tex). EDIT in reply to Drew's comment: ...
2
votes
0answers
119 views

No unicode glyphs

I am experiencing trouble displaying unicode glyphs overall in emacs. All unicode glyphs are displayed as boxes with the number for the unicode glyph inside. To best show what I mean, the M-x list-...
1
vote
0answers
46 views

desktop-save doesn't save file names with emoji properly

desktop-save-in-desktop-dir doesn't save file names that include glyphs from upper unicode range like emoji characters properly. By "upper", I mean "greater" like one with a code point 1F604 instead ...
0
votes
0answers
57 views

Automated conversion to real accented characters

I use org-mode to maintain a to-read list of articles. An entry in the list is produced by a function that I wrote in ELisp. The function uses bibtex-completion-get-value for the title and bibtex-...
1
vote
1answer
115 views

Get multibyte string byte

Given a multibyte string "x=π", how to get 4-th byte of the string, without creating string copy with something like string-as-unibyte? Pseudo code: (string-nth-byte 4 "x=π"). Expected result: 128. ...
1
vote
0answers
48 views

How to switch off Unicode bidi markers?

Do you know how whitespace mode turns on the visibility of certain normally non-visible characters, such as the space and the tab? Well, I'd like to be able to emulate this with Unicode bidirectional ...
8
votes
1answer
419 views

unicode.txt slowness

Moving around point (using the cursor keys) in Xah’s unicode.txt in fundamental-mode is noticeably slower than in an ordinary text file. Are the many non-ASCII characters the issue? Anything else? ...
2
votes
1answer
444 views

Unicode character display

Here's how some of the double-struck unicode letters display in my copy of Emacs for Windows: Here's how they display in Notepad: Version of Emacs: What's a good way to get Emacs to display all of ...
1
vote
1answer
255 views

What is Emacs' default character encoding for saving files? If it is UTF-8, is a BOM (Byte Order Mark) inserted?

What is the default character encoding used by GNU Emacs 25.1.1 to save files? Is it UTF-8? Assuming that it is UTF-8, does Emacs insert a BOM at the beginning of the file?
1
vote
1answer
58 views

Abbreviation expansion without spaces

I would like to set up things so that when I type Iuulius, the sequence uu is seamlessly replaced by ū (and a few more such pairs), as soon as I type the second u. I.e. the keystrokes and buffer text ...
7
votes
1answer
89 views

char-fold-search match for German eszett (ß)?

In emacs 25.1, if I customize search-default-mode to "Char-Fold Search", then an isearch-forward for u matches ü and one for o matches ö. But what character should I type to match ß ?
5
votes
0answers
69 views

(set-charset-priority 'unicode) ; should I do it?

I've seen the following in some init files, (set-charset-priority 'unicode) but after reading the documentation, I can't really say I understand the implications of this. In general I'm inclined to ...
1
vote
0answers
94 views

How to change font without breaking Unicode glyph mapping?

I am using Emacs 24.5 (stock Debian jessie) with a UHD display. I am over 50 and I need a large font. I have found a font that works well, but when I set the font using (set-face-attribute 'default ...
2
votes
2answers
201 views

Programmatically check whether a unicode character will render as tofu

Is there a way to programmatically determine whether a given unicode character will render as tofu in some context in Emacs? Some bug-flavored (U+1F41B) tofu renders in a face using DejaVu Sans Mono:
6
votes
1answer
44 views

How do I customize the way Emacs prints out certain keys and key sequences?

For example, I want Control key to be displayed not as C but as ⎈ (U+2388 HELM SYMBOL) in the minibuffer. Trying to personalize my Emacs and display all function keys as ISO symbols. And sequences to ...
6
votes
3answers
334 views

Translate ae to ä on non-German keyboard

If for some reason I am stuck to a keyboard with English layout and I often have to enter text in German - can emacs translate ae to ä (or ue to ü) for me? I do have a not-working solution like this: ...
1
vote
0answers
202 views

Charset and fonts shown by `describe-char`

I have some questions about emacs internal actions related to charset and fonts shown by describe-char. Now I use utf-8 as character encording scheme (CES) on emacs, so charsets shown by describe-...
5
votes
1answer
350 views

Under Windows, Emacs cannot handle encodings correctly for subprocesses, can it?

I have two simple text files on my D: drive, as shown below. D:\我.txt I D:\你.txt You After I execute M-x diff and type the correct filenames (Yes, I can input Chinese and filename ...
3
votes
1answer
502 views

Surprising glyphs for some characters

I am experiencing font issues for a few specific characters, namely the "SYMBOL FOR …" family, which are textual representations of control characters such as NUL, BEL, BS, etc. This screenshot shows:...
1
vote
0answers
28 views

Word boundaries in mixed-alphabet words [duplicate]

By default (e.g., in fundamental mode), emacs seems to treat the sequence of characters abcαβγ in a buffer as two separate words. In particular, a command like M-f done at the beginning will only move ...
0
votes
2answers
145 views

Render non-ascii chars correctly in Info buffers?

I'm reading the Emacs manual in Info-mode. Some non-ascii characters render as octal escape sequences rather than glyphs. For example, node 23.2 Minor Modes contains the following text: Electric ...
1
vote
1answer
342 views

How do I enable agda-mode's unicode input mode across all modes in Spacemacs?

I'd like to be able to type unicode characters like Π using agda-mode's "\Pi". In Emacs, I used to configure this like: (load-file (let ((coding-system-for-read 'utf-8)) (shell-...
1
vote
1answer
254 views

Unicode issues in Org-mode

Lately my documents dissolve into misinterpreted Unicode, for example α becomes \316\261. What could be the cause for that?
0
votes
0answers
161 views

How do I get curly quotation marks to show in Emacs on OS X?

EDIT: My problem has been fixed or, more precisely, worked around, thanks to help in the comments below. Never figured out what exactly the issue was as it wasn't a problem with my Emacs configuration ...
4
votes
2answers
284 views

Is there a way to get a Unicode character by name?

Is there a way to get a character by name (e.g. GREEK SMALL LETTER LAMBDA) instead of by code point (\uX3BB)?
6
votes
1answer
762 views

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

How do you enter unicode characters in Spacemacs?

I am currently using the normal Evil keybindings (defaults). How do I enter unicode characters such as U+21d2 ⇒ ? In routine applications such as Gedit or Firefox, we can use Ctrl+Shift+U 2 1 d 2 or ...