Questions tagged [utf-8]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
44 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 ...
user avatar
  • 143
0 votes
1 answer
23 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 ...
user avatar
  • 123
0 votes
1 answer
48 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 ...
user avatar
1 vote
1 answer
107 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. ...
user avatar
1 vote
1 answer
80 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....
user avatar
1 vote
0 answers
100 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 ...
user avatar
0 votes
1 answer
169 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 ...
user avatar
4 votes
1 answer
166 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 ...
user avatar
  • 237
0 votes
1 answer
181 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)
user avatar
1 vote
1 answer
278 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-...
user avatar
  • 1,089
1 vote
1 answer
85 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 &...
user avatar
  • 115
2 votes
1 answer
195 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 ...
user avatar
1 vote
1 answer
531 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 ...
user avatar
  • 145
2 votes
0 answers
140 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 ...
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 ...
user avatar
  • 1,058
1 vote
1 answer
297 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 ...
user avatar
  • 187
0 votes
1 answer
389 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 ...
user avatar
  • 2,365
0 votes
0 answers
380 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, ...
user avatar
  • 101
2 votes
1 answer
358 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 ...
user avatar
  • 93
0 votes
1 answer
138 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 ...
user avatar
2 votes
2 answers
2k 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 ...
user avatar
  • 293
0 votes
0 answers
140 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\...
user avatar
  • 2,365
1 vote
1 answer
387 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"...
user avatar
  • 30.2k
2 votes
1 answer
222 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. ...
user avatar
1 vote
1 answer
328 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?
user avatar
  • 1,399
1 vote
1 answer
228 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 ...
user avatar
  • 135
2 votes
1 answer
749 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 ...
user avatar
3 votes
1 answer
561 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 ...
user avatar
  • 399
1 vote
1 answer
225 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 ...
user avatar
  • 1,353
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 --- ! .............................................
user avatar
  • 387
1 vote
0 answers
388 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 ...
user avatar
  • 11
2 votes
2 answers
370 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 \...
user avatar
3 votes
1 answer
125 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 ...
user avatar
  • 373
2 votes
1 answer
335 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 ...
user avatar
  • 655
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....
user avatar
1 vote
1 answer
1k 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 ...
user avatar