Questions tagged [utf-8]
The utf-8 tag has no usage guidance.
45
questions
0
votes
1
answer
31
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 ...
0
votes
0
answers
26
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:/...
1
vote
1
answer
165
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 ...
0
votes
1
answer
52
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 ...
1
vote
1
answer
20
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 ...
0
votes
0
answers
36
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 ...
0
votes
0
answers
25
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", ...
0
votes
1
answer
52
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 ...
0
votes
1
answer
29
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 ...
1
vote
0
answers
48
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 ...
0
votes
1
answer
118
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 ...
0
votes
1
answer
88
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 ...
1
vote
1
answer
167
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.
...
2
votes
1
answer
209
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....
1
vote
0
answers
215
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 ...
0
votes
1
answer
213
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 ...
4
votes
1
answer
262
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 ...
0
votes
1
answer
188
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)
2
votes
1
answer
394
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-...
1
vote
1
answer
105
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
&...
2
votes
1
answer
252
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 ...
3
votes
1
answer
784
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 ...
2
votes
0
answers
172
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 ...
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 ...
1
vote
1
answer
343
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 ...
0
votes
1
answer
439
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 ...
0
votes
0
answers
440
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, ...
3
votes
1
answer
410
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 ...
0
votes
1
answer
160
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 ...
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 ...
0
votes
0
answers
195
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\...
1
vote
1
answer
473
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"...
2
votes
1
answer
283
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
1
answer
338
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
1
answer
265
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 ...
2
votes
1
answer
923
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 ...
3
votes
1
answer
635
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 ...
1
vote
1
answer
254
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 ...
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 ---
! .............................................
1
vote
0
answers
432
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 ...
2
votes
2
answers
422
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 \...
3
votes
1
answer
140
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 ...
2
votes
1
answer
347
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 ...
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....
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 ...