Discussion:
How to type Unicode Characters in Minibuffer?
(too old to reply)
Rodericus
2012-08-23 19:26:56 UTC
Permalink
Dear Sirs!

I want to call "string-replace" for replacing a string
with one containing an unicode char. How do I type it
in the minibuffer? At best giving the decimal/hexadecimal
number of the character?

Thanks
Rod.
Piet van Oostrum
2012-08-23 22:02:37 UTC
Permalink
Post by Rodericus
I want to call "string-replace" for replacing a string
with one containing an unicode char. How do I type it
in the minibuffer? At best giving the decimal/hexadecimal
number of the character?
You can use the input method 'ucs'. Then you can enter Unicode
characters as Unnnn, where n is the Unicode codepoint in hex. E.g. U20ac
for the Euro sign.
--
Piet van Oostrum <***@vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]
Vagn Johansen
2012-08-25 17:34:26 UTC
Permalink
Post by Rodericus
Dear Sirs!
I want to call "string-replace" for replacing a string
with one containing an unicode char. How do I type it
in the minibuffer? At best giving the decimal/hexadecimal
number of the character?
Use C-q.

If you set read-quoted-char-radix to 16

(setq read-quoted-char-radix 16)

you can use hex (it defaults to 8 (octal) for some unknown reason).

For example: C-q 5 0 b b RET
--
Vagn Johansen
Ian Clifton
2012-08-31 14:56:24 UTC
Permalink
Post by Vagn Johansen
Use C-q.
If you set read-quoted-char-radix to 16
(setq read-quoted-char-radix 16)
you can use hex (it defaults to 8 (octal) for some unknown reason).
For example: C-q 5 0 b b RET
Marvellous tip, thank you!
--
Ian ◎
Loading...