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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
26 views

Can't save file that contain German character ß in Emacs?

I'm trying to save a file in Emacs that contain ß. This is name Wißkirchen. When I try to save, got this error: Debugger entered--Lisp error: (file-missing "Loading charset map" "Nie ma ...
jcubic's user avatar
  • 741
1 vote
0 answers
17 views

Map a syntax table to Unicode’s general categories

How would you go about mapping the syntax table of a major mode to Unicode’s general categories? For example, set whitespace class - for each character of the syntax table that belongs to Unicode ...
Michael Allan's user avatar
1 vote
0 answers
30 views

Should column-number-mode count glyphs instead of bytes?

I noticed today that column-number-mode seems to count bytes in the underlying character encoding, or something similar, instead of user-visible glyphs. For example, on this line: foo ☕ bar ...when ...
ryan's user avatar
  • 111
3 votes
1 answer
197 views

How to configure Emacs to display missing Unicode symbols

I am using Emacs 28.2 on Windows ("GNU Emacs 28.2 (build 2, x86_64-w64-mingw32)"). It has Unicode support for many characters, but some seem to be missing. For example the Unicode character “...
AnoE's user avatar
  • 408
0 votes
1 answer
79 views

Unicode displayed incorrectly

I recently discovered set-input-method TeX and really like it! But I noticed that certain characters are displayed incorrectly. For example, ₘ is displayed as a superscript ⊕ to me: To reproduce: ...
jpb's user avatar
  • 101
0 votes
0 answers
19 views

Multilingual LaTeX pdf export

I have an org mode file with a mix of Bengali and English text, which I got to work using Adib Hasan's solution here: #+LATEX_HEADER: \usepackage[banglamainfont=Kalpurush, banglattfont=Akaash, feature=...
subhacom's user avatar
3 votes
2 answers
274 views

How to ignore accents (À Â É Ê etc.) when sorting?

When sorting text with Emacs, the result is wrong for accented characters: Always Emerald Yesterday Zoo À la campagne Âge Écarlate Être Here is the result I would like instead: À la campagne Âge ...
Carapuce's user avatar
1 vote
1 answer
272 views

Visual corruption in terminal-emacs

I run Emacs in my terminal, which is primarily kitty on macOS, but I'm experiencing the same (what I'm about to describe) with other terminal emulators: In my shell LANG is en_US.UTF-8 and I have ...
michaelsbradleyjr's user avatar
1 vote
1 answer
29 views

insert-char completion says no matches, but inserts character anyway?

I'm using C-x 8 RET to insert a Unicode character. I enter the hex value -- for example, 201c -- and the minibuffer says "no matches". But if I just hit enter, the expected left double quote ...
Dan Drake's user avatar
  • 615
0 votes
0 answers
40 views

Unicode Line and Paragraph Separator is Not Properly Supported

Emacs is displaying Unicode LINE SEPARATOR and PARAGRAPH SEPARATOR (PS) as rectangle. PS also does not end a paragraph. How can I make emacs treat these characters properly?
user_'s user avatar
  • 1
2 votes
2 answers
221 views

Programmatically invoking insert-char for compatibility with unicode insertion in Linux

I'm trying to enter unicode chars in emacs in the same manner I can anywhere else in linux, with the C-S-u string shortcut. Unfortunately, the function I've written does not work. (defun insert-char-c ...
precompute's user avatar
1 vote
2 answers
296 views

Way to keybind «» in Emacs

I would like to be able to keybind « and » to easy key bindings. At the moment in Emacs the only way to write these latin quotation marks is this: C-x 8 < and C-x 8 > I tried the following, but ...
Adelita's user avatar
  • 155
1 vote
1 answer
281 views

Unicode characters missing only in Emacs

A few unicode characters are missing from my Emacs (GNU Emacs 28.2 on macOS 11.6.8.). They are displayed everywhere else on my system just fine, but in Emacs they look like this: (Same character in ...
Carapuce's user avatar
3 votes
1 answer
569 views

Why do I have Chinese/Mandarin characters in my mode-line and e-shell out of the blue? How do I fix this?

I have been using Emacs for a while. As you can see in my config file (whole file), there is a snippet to provide a Doom mode line: (use-package doom-modeline :init (doom-modeline-mode 1) :custom (...
Pedro Delfino's user avatar
0 votes
1 answer
106 views

Insert Unicode in GUI Emacs and Xorg

I see that for GUI Emacs, we should use ucsc-insert (C-x 8 RET), but this is totally different than under xorg, where we use Control-Shift-u. Do we have a method that would work in both? The reason I'...
Jason Hunter's user avatar
0 votes
0 answers
41 views

How to convert greek text to unicode using matching input method?

Good evening, I have a large TeX-file with Greek inclusions in traditional babel way: \textgreek{sunj'hkh|}. I would like to convert it to unicode for further work. Emacs has greek-babel input method,...
Vadim Radionov's user avatar
0 votes
0 answers
78 views

How to represent guillemets in `org-mode`: Unicode vs Org-mode entities)?

I was planning to write some narrative in Emacs, and after a bit of research it seems that the most complete solution may be org-mode. Now, I report direct speech using guillemets (« and »). The ...
Alessandro Bertulli's user avatar
1 vote
0 answers
74 views

Emacs 27.2 not rendering Devanagari fonts properly

I am having problems with Devanagari fonts in Emacs 27.2. I am using the Noto Sans Devanagari font to render the devanagari unicode font block. When I first start emacs up, everything works fine and ...
Raghunath's user avatar
0 votes
1 answer
158 views

How to print character code in UTF-8 (ie ASCII codes)

With (let ((c (char-after (point)))) I get the code of the current character, and if I just do (message "%X" c) it prints the hexadecimal UTF-16 apparently. Is there a simple way to get ...
Tomas By's user avatar
  • 123
1 vote
1 answer
309 views

Why am i getting this "E926" character on my dashboard?

Why am i getting this E926 in my Emacs dashboard and how can I fix this? dashboard is an Emacs package - https://github.com/emacs-dashboard/emacs-dashboard.
ghqste's user avatar
  • 51
1 vote
2 answers
270 views

How to disable Emacs bidi?

I want to disable Emacs from ever displaying text right-to-left (i.e. ignore Unicode control sequences to change text orientation). How to do it?
vinipsmaker's user avatar
0 votes
0 answers
213 views

Buffer display issue with unicode characters on WSL2

I have a file with a single Unicode character in it: 🕯 (Unicode character CANDLE, codepoint 128367, #o372557, #x1f56f). When I open this file via emacs -Q and hit C-l, the display buffer has issues. ...
ponguile's user avatar
1 vote
0 answers
353 views

How to replace unicode in emacs?

I'm using spacemacs, and am wondering how you do certain commands like replace and align with respect to unicode (particularly relevant for Agda development). For instance, → has the \to shortcut in ...
Warrick Macmillan's user avatar
2 votes
1 answer
264 views

Characters in unicode-smp charset have no glyphs in Emacs 27.1, debian buster, using MesloLGS NF font

I'm using Gnu Emacs 27.1 GTK on Debian 10 from buster-backports. I'm also using the MesloLGS NF font that ships with zsh powerlevel10k, and has a heck of a lot of unicode characters. Nonetheless, ...
David Hanak's user avatar
2 votes
0 answers
144 views

Problem in emacs-chess when I am using unicode symbols

When I configured chess to use unicode, it's not rendering properly. Below is the configuration I am using for chess (setq chess-default-display 'chess-plain) (setq chess-default-engine 'chess-...
nerding_it's user avatar
2 votes
1 answer
105 views

Display LaTeX-Quotation marks as unicode characters

When quoting in auctex, I use the strings "` and "' to typeset „ and “, respectively. Now, I want emacs to display the corresponding unicode characters to these strings. I've tried it with ...
Vitus Schäfftlein's user avatar
0 votes
1 answer
98 views

How can I force a Hebrew font to match the fixed width of Latin text characters in a mono font

I have setup my Emacs to use Noto Sans Mono everywhere. I did this on the naïve assumption that it was in fact a mono-spaced font, with full coverage of Hebrew and Greek Extended characters. ...
Lyndon Drake's user avatar
0 votes
1 answer
195 views

Custom search for text under cursor

I would like to write a custom elisp function that searches for a few variants of unicode text under a cursor and highlights their occurrences in the currently open file. For e.g. if my text is ...
linuxfan's user avatar
  • 209
0 votes
1 answer
65 views

How to properly align org table with mixed English-Bengali script?

I am unable to tidy up this table, so that last column is properly aligned, as the other two: |-----------+----------------+------------| | English | Bengali s. | Bengali w. | |-----------+------...
gsl's user avatar
  • 1,772
1 vote
1 answer
799 views

Adding unicode special characters

I wanted to add a latin capital O with circumflex [ô] to a file in emacs, but for some reason all my attempts lead to the character being replaced by a question mark ?. I tried : M-x insert-char ...
probo243's user avatar
1 vote
0 answers
73 views

Problems with COMBINING OVERLINE unicode rendering in Emacs 27.1

[Emacs 27.1 from manjaro arch] Hi, can anyone help me with the following? I'd like to render "x bar" (x with a horizontal bar) above it in unicode. I can get in Emacs 27.1, using monaco (...
Stephen Eglen's user avatar
6 votes
2 answers
2k views

Override the default font for emoji characters

My fonts setup is (setq default-frame-alist '((font . "DejaVu Sans Mono-10"))) (defun my-emoji-fonts () (set-fontset-font t 'symbol "Twemoji") (set-fontset-font t 'symbol &...
Arch Stanton's user avatar
  • 1,657
3 votes
1 answer
411 views

How to open a file which looks like unicode in emacs

I have a file in my C: drive on Windows named MSDELog.log and from opening the file with a hex editor I can see that there is a null character after each character. But there is no indicator at the ...
arcomber's user avatar
  • 207
0 votes
1 answer
57 views

Penguin character in file

I use Spacemacs. I tried to type a command, but I mistyped. Instead of what I intended, a character was inserted that renders as this: I suppose that is Tux. When I try to copy the character, I get ...
Daniel Paleka's user avatar
0 votes
1 answer
330 views

Why unicode 🂩 (poker card) can't be properly displayed in GUI but fine in TUI?

I'm having a hard time getting unicode to properly displayed in GUI. I'm trying to type poker cards unicode inside emacs GUI, 🂩 for instance. I would like to use font "Ubuntu Mono", NOT ...
TerryTsao's user avatar
  • 1,216
3 votes
1 answer
239 views

Paste very specific Unicode in scratch buffer freezes emacs -Q

I experienced a freeze which can be reproduced very easily on GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.18, cairo version 1.16.0) of 2020-08-25 . emacs -Q Copy the Unicode U+...
Firmin Martin's user avatar
0 votes
1 answer
239 views

Use LaTeX accents with tex insert method

With this answer I learned how to insert math symbols with latex syntax directly into my buffer. What I can't figure out is how to make accents insert properly. I want \hat{\beta} to insert beta hat ( ...
mcp's user avatar
  • 546
3 votes
2 answers
1k views

How to insert mathematical symbols in emacs

I'm writing an Asciidoctor file to take notes for statistics and would like to insert mathematical symbols like β. Is there any way to do this without copy and pasting?
mcp's user avatar
  • 546
1 vote
0 answers
126 views

Ignore meta key when inputting unicode on OSX

I'm a newbie running emacs 26.3 (9.0) on OSX in the graphical mode (i.e. not in the terminal) and am writing a document with Devanagari (sanskrit text). Some of the letters in the inbuilt devanagari ...
linuxfan's user avatar
  • 209
0 votes
0 answers
127 views

Uppercase instead of lowercase Greek letter shown in Julia mode

I am writing Julia code in Emacs, which allows the use of unicode characters in the source code. However, some symbols come out looking weird. For example the Greek letter nu: becomes: Does anyone ...
space_voyager's user avatar
0 votes
0 answers
123 views

Emacs -nw prints Turkish characters incorrectly

I use Emacs 25.2.1 on a Windows XP Laptop with a Turkish keyboard. Problem On emacs -nw the following (non-ascii) letters print incorrectly: Letters such as 'ö' and 'ü' which are also used in German ...
Terry's user avatar
  • 370
1 vote
3 answers
186 views

How can you automatically translate fractions into their short unicode versions? e.g. ⅔

Ideally one can just type fractions as normally e.g. 2/3, and either the view simply displays it as ⅔, without changing the text itself OR the text itself is changed. I need this for org mode in case ...
avv's user avatar
  • 1,563
1 vote
1 answer
237 views

How to use unicode character for truncation and wrap slots in the standard display table

I'm trying to set unicode characters for the truncation and wrap slots in the standard display table (see code below) that are used in terminal mode or GUI when there is no fringe. It is working for ...
Nicolas Rougier's user avatar
1 vote
0 answers
210 views

unicode-fonts help needed

Any experts in the unicode-fonts package out there? What I am trying to do is set the font for CJK characters and not use the default. This seems very tough! Using the customize interface injected ...
jolyon's user avatar
  • 111
1 vote
1 answer
211 views

How to enter overlined characters?

Example: R̅E̅S̅ What I already tried, to no avail: Type R, followed by C-x 8 RET OVERLINE RET What works but is not nice: Copy the example above and edit it.
feklee's user avatar
  • 1,079
1 vote
1 answer
2k views

How to regex match words? (in multiple languages)

I have a simple regex search which matches [A-Za-z], however I would like it to match other characters which would be used in dictionary words for non-english languages. e.g. ü, Ø, ɵ 人参, while ...
ideasman42's user avatar
  • 8,796
4 votes
4 answers
2k views

Unicode input from keyboard (QMK) to Emacs

I have setup my QMK-enabled keyboard to output Unicode characters. In short, that was adding UNICODE_ENABLE = yes line to the rules.mk file and adding the following two lines to the config.h file. #...
TrentinQuarantino's user avatar
0 votes
1 answer
185 views

mail attachment filename coding

I try to use mu4e with smtpmail to send mail, and use mml-attach-file to add attachment. If the attachment filename contains non-english name, such as Chinese, the header of message will become ...
Vonfry's user avatar
  • 111
1 vote
1 answer
64 views

Problem with emacs and sagemath unicode

I am using Emacs (GNU Emacs 24.5.1, which is admittedly old, but the problem also exists on a newer (25 something) Emacs on a different machine) and sage-shell-mode to work with the computer algebra ...
Martin Rubey's user avatar
0 votes
1 answer
101 views

How to display unicode chars in ielm

I'm using emacs on MAC OSX ELISP> (emacs-version) "GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2019-09-06" ielm REPL echoes back ...
anquegi's user avatar
  • 749