help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: displaying escaped unicode files


From: B. T. Raven
Subject: Re: displaying escaped unicode files
Date: Tue, 12 Sep 2006 23:15:00 -0500

"Gulliver7" <rpontisso@yahoo.co.uk> wrote in message
news:mailman.6847.1158116285.9609.help-gnu-emacs@gnu.org...
>
>
> Kevin Rodgers wrote:
> >
> > Gulliver7 wrote:
> >> I'm running emacs 21.3 in Windows, and need to read and edit some
text
> >> files
> >> with UTF-8 encoding and others with escaped unicode encoding.  I've
> >> managed
> >> to get emacs to display the UTF-8 files correctly, but not the
escaped
> >> unicode ones.  The alphabet is Latin, but accented characters are not
> >> being
> >> displayed properly in the escaped unicode files.  What do I need to
do to
> >> get emacs to display the characters properly, regardless of whether I
go
> >> into a UTF-8 or an escaped unicode file?
> >
> > What is an "escaped unicode" file?  Can you attach a small sample file
> > to your reply?
> >
>
> According to the folks at Mozilla, Escaped Unicode Encoding uses the
unicode
> representation \uXXXX.
>
> I've attached a small file with characters encoded in this way.  It
includes
> three "special" characters:
> a "u" with a circumflex, an "a" with a circumflex, and a "c" with a
cedilla.
>
> I can't get emacs to read them properly: they appear, respectively, as:
> "\u00FB",  "\u00E2",  "\u00E7"
>
> If you can get emacs to read the file properly, please let me know how
you
> did it.
>
> Thanks
>
> http://www.nabble.com/user-files/235986/escapedunicode.properties
> escapedunicode.properties
>

M-x ucs-insert is for manual insertion of arbitrary (or at least the ones
included in alists in ucs-tables.el) unicode characters. This function is
defined toward the end of ucs-tables.el. If just the sets of four hex
digits are entered in the mini-buffer (one set at a time), the characters

ûâç

are inserted at point.

This is not a plug-in but just an interactive function that can be invoked
with Meta-x. It's designed for manual, one at a time, insertion of
characters, not for rendering a whole file.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]