Questions tagged [utf-8]

The tag has no usage guidance.

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

How can I load a large file in literal mode, but also as UTF-8?

When I open a 100Mio file, Emacs asks me if I want to open in literal mode. I answer yes, but it's not loading the file as UTF-8. Is there any way to set default UTF-8 for literal mode?
Jason Hunter's user avatar
0 votes
1 answer
57 views

Problem with UTF-8 characters in magit buffers

I have my Emacs working in a manjaro (based on arch linux) and the languaage set catalan. It is working well, but I had a problem with dired buffers showing weird symbols and solved adding this ...
anquegi's user avatar
  • 749
0 votes
0 answers
58 views

Printing directly from an emacs buffer works but the printed document does not print unicode characters

I run Emacs 29 in Windows. These print settings allow me to print directly from a buffer: ;; Printer settings ;; Set printer name to true (t) for default printer ;; (setenv "GS_LIB" "C:/...
Edman's user avatar
  • 1,197
1 vote
1 answer
248 views

What utf-8 settings need to be explicitly set in dot emacs

I run Emacs in Windows via msys2. If I set my language environment in my .bashrc using export LANG=en_US.UTF-8 I get as my default environment in Emacs utf-8-dos. Is there a need thereafter to set any ...
Edman's user avatar
  • 1,197
0 votes
1 answer
123 views

utf-8-unix versus utf-8-dos in Emacs on Windows. Which is more advantageous and why?

I run Emacs in msys2 on Windows. I have set my system environment to utf-8 using this command in my .bashrc: export LANG=en_US.UTF-8. This has resulted in the coding being set to utf-8-dos without the ...
Edman's user avatar
  • 1,197
1 vote
1 answer
24 views

Bibtex entry name from doi and character corruption

I am using the following setting to get bibtex entries from doi. There are two issues in my setting. One is the entry name. For example, I can get the following entry from doi. The entry name becomes ...
hrkshr's user avatar
  • 143
0 votes
0 answers
40 views

Problem in opening files with filenames in Devanagari

I am using Emacs 28.2 on Trisquel 11. I have installed it using 'guix package manager'. When I am trying to open a file named in Devanagari characters it opens as blank file and the file name on mode ...
Sushant's user avatar
0 votes
0 answers
28 views

read-char-by-name to start from Arrows or Dingbats

Using (read-char-by-name "utfname: ") how can I start from Arrows or Dingbats rather than painfully starting from "Null" "START OF HEADING", ...
Dilna's user avatar
  • 1
0 votes
1 answer
53 views

How to make a change to the variable `glasses-separator` take effect?

I have the following elisp function that uses utf8 hex codes to change the separator used by glasses-mode. One problem is that simply calling (setq glasses-separator "\u27A4") is not ...
Dilna's user avatar
  • 1
0 votes
1 answer
48 views

Enable UTF8 in Python comint processes

I'm trying to fix a Python3 script that breaks while processing a string containing Japanese characters, "出典データ". While debugging, I get the following error when printing the string from an ...
Lorem Ipsum's user avatar
  • 4,447
1 vote
0 answers
51 views

Why is the encoding for recentfile save file set to utf-8 rather than plain text?

This is from recentf.el in Emacs 26.3: (defconst recentf-save-file-coding-system (if (coding-system-p 'utf-8-emacs) 'utf-8-emacs 'emacs-mule) "Coding system of ...
Mikef's user avatar
  • 155
0 votes
1 answer
149 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
0 votes
1 answer
93 views

org-protocol URLs with UTF-8 (URL-encoded) characters aren't properly captured

When using org-protocol capture URLs on Windows, pages with non-ASCII titles or captured text results in a capture with incorrect values applied in the template. Despite such characters being properly ...
Chris Charabaruk's user avatar
1 vote
1 answer
189 views

Emacs client doesn't recognize non-ascii input

The problem: When I type a non-ascii character, the character is not wrote and instead a weird key combination is performed, depending on which character I have typed, as if it didn't support utf-8. ...
jthulhu's user avatar
  • 225
2 votes
1 answer
246 views

How to produce UTF8 info file with makeinfo on osx?

In the texi file I have the directive @documentencoding UTF-8 but makeinfo gives me a warning: unrecognized encoding name `UTF-8' raoul@MacBook-Pro-de-Raoul oef-mode % makeinfo oef-mode.texi oef-mode....
Raoul HATTERER's user avatar
1 vote
0 answers
232 views

unable to display SVG file containing utf-8 charactersI

I like to edit SVG drawings directly in Emacs. It is very convenient to toggle display of source versus drawing with the sequence Ctrl-C ctrl-C. But, when the file contains text in utf-8, Emacs cannot ...
Didier Kryn's user avatar
0 votes
1 answer
238 views

Tamil characters show as garbage in shell buffer but ok in files

When printing non-latin characters like the ones from my mother tongue Tamil in shell, it appears weird(left side window in the image). When I open the file with Tamil characters they are rendered ...
vanangamudi's user avatar
4 votes
1 answer
290 views

Emacs crash because of special utf-8 character

I am trying to open a file that contains the following utf-8 character: ⛺ Unfortunately, my emacs does really not appreciate, and immediately crashes. I have tried to comment out all my init.el (and ...
m.raynal's user avatar
  • 257
0 votes
1 answer
189 views

UTF-8 error everytime Org-gcal sync entries

I continue to get bogged down with this error every time I sync from gcal, I have this ut8 flag set in my config as well, any direction would be helpful. (prefer-coding-system 'utf-8-unix)
Gayan Hewa's user avatar
2 votes
1 answer
432 views

Revert buffer with coding system

Chances are that every time utf-coding should be activated by invoking 'M-x revert-coding-system` , even though a long list of utf-prefer configuration: (prefer-coding-system 'utf-8) (set-...
Wizard's user avatar
  • 1,251
1 vote
1 answer
110 views

Does `<meta charset=utf-8 />` obviate `-*- coding: utf-8 -*-` in an HTML file?

Is writing <meta charset=utf-8 /> in an HTML file (being edited by Emacs) sufficient, or do I also need to specify -*- coding: utf-8 -*- on the first line? In other words, do I have to write &...
Vrokipal's user avatar
  • 115
2 votes
1 answer
270 views

Emacs displays Hebrew text incorrectly

I have a number of org-mode/text documents that contain English and Hebrew text. They are scholarly papers. However, the Hebrew text in Emacs is not displayed correctly. I am using Dejavu Sans Mono as ...
Edman's user avatar
  • 1,197
3 votes
1 answer
839 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 ...
Joseph R.'s user avatar
  • 175
2 votes
0 answers
176 views

R in ESS outputs UTF-8, which emacs renders raw

I find the question but no answer at Emacs ESS R - Message Content Encoding and Display Issue. In buffer *R*, the R process uses UTF-8 encoding for its output. However emacs does not decode that ...
Quigi's user avatar
  • 21
4 votes
2 answers
1k 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 ...
Tom's user avatar
  • 1,230
1 vote
1 answer
355 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 ...
ChaimKut's user avatar
  • 187
0 votes
1 answer
453 views

Unable to use Microsoft Japanese IME in Emacs under Windows

For some reason I can't seem to use the Microsoft Japanese IME in Emacs, even though I can apparently use the Microsoft Chinese IME to input Chinese without problems. Even if I've switched to the ...
xji's user avatar
  • 2,635
0 votes
0 answers
483 views

TeX input mode and subscript

I'm a bit lost on what I can use the TeX input mode for. What I'd like to achieve is a mathematical notation like ∑ᵢ₌₁ᴺ ∑ⱼ₌₁ᴹ in pure UTF text and it seems to mostly work, i.e. \sum _ i _ = _ 1 works, ...
kakk11's user avatar
  • 101
3 votes
1 answer
434 views

Quail Rules UTF8 behaviour

I had inserted the following code in .emacs: (quail-define-package "LaTeX-UTF-8" "TeX" "TeX") (quail-defrule "α" ["\\alpha"]) what I want to do is the following: when I insert the character "α" (I ...
MaPo's user avatar
  • 103
0 votes
1 answer
175 views

File encoding differet when visiting the file again

I have this in my .emacs: (setq-default buffer-file-coding-system 'utf-8-unix) When I create a file in emacs and save it, it should be buffered and saved in utf-8-unix. When I open such a file ...
 bersama's user avatar
2 votes
2 answers
3k views

How encode to UTF-8 content of buffer?

Windows 10, Emacs 25.1 When I open file that not encoding in UTF-8 I get the next incorrect result: I try by command set-buffe-file-coding-system but it not help. And here result: As you can see ...
Alex's user avatar
  • 303
0 votes
0 answers
203 views

Is there a way to convert an array of bytes into a UTF-8 string?

There are now some files which contain raw bytes which are valid UTF-8 characters, e.g. a line of the file could be '@\u0915\u0941\u091b@ \u092c\u093f\u0902\u0926\u0941 \u0938\u095e\u0947\u0926 \u0939\...
xji's user avatar
  • 2,635
1 vote
1 answer
506 views

utf-8 characters with eshell, eshell-visual-subcommands, and git

Using the configuration (eval-after-load "em-term" '(progn (add-to-list 'eshell-visual-subcommands '("git" "diff" "help" "log" "show")) (add-to-list 'eshell-visual-options '("git" "--help"...
Tobias's user avatar
  • 33.1k
2 votes
1 answer
301 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. ...
Iskander Sharipov's user avatar
1 vote
1 answer
343 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?
Evan Aad's user avatar
  • 1,521
1 vote
1 answer
270 views

Incremental Search on UTF-8 in Julia Mode

I was wondering if there is any way of searching (incremental search) for a UTF-8 character in julia mode, other than typing the character and copying it into the minibuffer. I think you can use ...
Todd's user avatar
  • 211
2 votes
1 answer
1k views

org-mode how to export raw text no formatting?

Any quick way to export an org-mode document into a text file with no formatting and no org markup characters? I am aware of C-c C-e [t] Export to Plain Text unfortunatly those options add formatting ...
kevzettler's user avatar
4 votes
1 answer
666 views

^M character suddenly appearing upon opening file [closed]

I'm using Emacs on Windows. Everything was fine just a few minutes ago, but for some odd reason, when I open a certain file, I get ^M characters after every line. As far as I know/remember, I didn't ...
wiuah's user avatar
  • 429
1 vote
1 answer
279 views

Some UTF-8 characters break my ansi-term. How to fix it?

I've got a script that generates some output. Some parts of the output are cyrillic letters, and they cause my ansi-term to break - I guess they are treated as control characters(they are displayed ...
MatthewRock's user avatar
  • 1,473
4 votes
1 answer
2k views

How to set Chinese fonts in modern Emacs

For a long long time, my Emacs font definition in X Resources has always been: ! -------------------------------------------------------------- &ss --- ! .............................................
xpt's user avatar
  • 457
1 vote
0 answers
439 views

org-mode latex export: German ß character

Is there a way to export to latex in a way that the German 'ß' ("scharfes S", "eszett") character stays? I'm using utf-8 input encoding, and Umlauts get exported well, but ß appears as capital SS in ...
guest's user avatar
  • 11
2 votes
2 answers
439 views

How to fix UTF-8 in info buffer that doesn't correctly display in terminal?

I've just installed 24.5 on SUSE, and I have no windowing available, so I am using emacs in the terminal window. When I choose 'Read the Emacs Manual' from the 'Help' Menu, I see (for example) "type \...
Derrell Durrett's user avatar
3 votes
1 answer
144 views

Crash when opening a file with non-ascii characters - how to diagnose?

Running MacOSX GUI emacs installed via homebrew. Whenever I open a regular text file that contains non-ASCII characters, Emacs immediately crashes. These files have no header lines specifying ...
jmay's user avatar
  • 373
2 votes
1 answer
350 views

How can I extend org symbols table?

I use org UTF8 character substitution all the time, for example to go from \beta to β (enabled with the org-pretty-entities variable). However some standard symbols are missing and I'd like to add ...
Literal's user avatar
  • 675
1 vote
1 answer
2k views

How to convert a MULE encoded file to UTF-8?

I am trying to modify a buffer written by desktop-save to a file. The file is named .emacs.desktop and I am trying to modify it from a Perl script. It turns out that it is saved in emacs-mule encoding....
Håkon Hægland's user avatar
1 vote
1 answer
2k views

how to add new UTF-8 words to Hunspell's user custom dictionary?

How do I set up Hunspell so that I can add new UTF-8 words (e.g. "Rúdi") to my user local dictionary? I have a function that allows me to add new words to my local dictionary. It works for adding ...
incandescentman's user avatar