[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: To get Unicode file (UTF8) with a leading byte-order-marker characte
From: |
Kevin Rodgers |
Subject: |
Re: To get Unicode file (UTF8) with a leading byte-order-marker characters? |
Date: |
Fri, 11 Jun 2010 23:56:41 -0600 |
User-agent: |
Thunderbird 2.0.0.24 (Macintosh/20100228) |
Paul Chany wrote:
Eli Zaretskii <eliz@gnu.org> writes:
From: Paul Chany <csanyipal@gmail.com>
The file should be ASCII (using \U escapes for unicode characters) or
Unicode (UTF16 or UTF8) with a leading byte-order-marker.
How can I get this file using Emacs?
C-x RET f utf-8-with-signature RET
Well, when I did so I get the following message:
<NSException: 0x9f91dd0> NAME:NSGenericException REASON:Parse failed at
line 2 (char 41) - unexpected character (wanted ';') INFO:(nil)
and the translation don't works. :(
What's wrong with it?
I attach the file here (it's small):
I saved the file and visited it in Emacs 23.2.1 (i386-apple-darwin8.11.1, NS
apple-appkit-824.48), and no errors or warnings were reported.
`C-h C RET' displays:
Coding system for saving this buffer:
U -- utf-8-with-signature-unix
...
and with the cursor over character 41 (the second character on line 2),
`C-u C-x =' displays:
character: ó (243, #o363, #xf3)
preferred charset: unicode (Unicode (ISO10646))
code point: 0xF3
syntax: w which means: word
category: .:Base, c:Chinese, j:Japanese, l:Latin, v:Viet
buffer code: #xC3 #xB3
file code: #xEF #xBB #xBF #xC3 #xB3
(encoded by coding system utf-8-with-signature-unix)
display: by this font (glyph code)
nil:-apple-Monaco-medium-normal-normal-*-12-*-*-*-m-0-iso10646-1 (#x79)
Character code properties: customize what to show
name: LATIN SMALL LETTER O WITH ACUTE
old-name: LATIN SMALL LETTER O ACUTE
general-category: Ll (Letter, Lowercase)
decomposition: (111 769) ('o' '́')
--
Kevin Rodgers
Denver, Colorado, USA