[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: converting octal escape sequences to utf-8 and back
From: |
Roland Winkler |
Subject: |
Re: converting octal escape sequences to utf-8 and back |
Date: |
Tue, 31 May 2011 16:06:52 -0500 |
On Mon May 30 2011 Stefan Monnier wrote:
> You can try to convert the \302 and \247 to/from bytes by using `read'
> and `prin1' (since Emacs also uses such a notation for its own Elisp
> strings). As for converting those bytes to/from chars, just use
> (en|de)code-coding-string.
Thanks! The funny thing is that I am trying to make emacs interact
with the program djvused that uses a rather lisp-like structure for
its input and output. So using `read' and `prin1' is anyway a
natural way to go.
Once my code is a bit more mature, I'll post it on
gnu-emacs-sources. Maybe it'll be helpful for others, too.
Roland
Re: converting octal escape sequences to utf-8 and back, Eli Zaretskii, 2011/05/28
Re: converting octal escape sequences to utf-8 and back, Randal L. Schwartz, 2011/05/30
Re: converting octal escape sequences to utf-8 and back, Stefan Monnier, 2011/05/30
- Re: converting octal escape sequences to utf-8 and back,
Roland Winkler <=