unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Trouble viewing accented characters
@ 2008-09-18 13:41 Armando Martins
  2008-09-18 17:57 ` Peter Dyballa
       [not found] ` <mailman.19486.1221760691.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Armando Martins @ 2008-09-18 13:41 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 438 bytes --]

Hello!
When I open a text file and due to encoding problems what I see is, say,

Text imprim\351]. Edici\363n, introducci\363n

instead of

Text imprimé]. Edición, introducción

how can I view the accented characters correctly, please?

Thanks for your help.
Armando Martins
-- 
Com os melhores cumprimentos,

Armando Martins
Departamento de Linguística e Literaturas
Universidade de Évora, Largo dos Colegiais nº 2
7004-516 ÉVORA

[-- Attachment #2: Type: text/html, Size: 537 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Trouble viewing accented characters
       [not found] <mailman.19473.1221753541.18990.help-gnu-emacs@gnu.org>
@ 2008-09-18 16:39 ` Oleksandr Gavenko
  2008-09-18 16:44   ` Oleksandr Gavenko
  0 siblings, 1 reply; 8+ messages in thread
From: Oleksandr Gavenko @ 2008-09-18 16:39 UTC (permalink / raw)
  To: help-gnu-emacs

Problem that you have described in

GNU Emacs Manual.

See
"27. International Character Set Support"
  - 27.10 Fontsets.
  - 27.11 Defining fontsets.

Also from "C.7 Font Specification Options"

Here is an example, which happens to specify the font whose nickname is 
С6x13Т:

      emacs -fn \
        "-misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-iso8859-1" &

You can also specify the font in your .Xdefaults file:

      emacs.font: 
-misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-iso8859-1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Trouble viewing accented characters
  2008-09-18 16:39 ` Oleksandr Gavenko
@ 2008-09-18 16:44   ` Oleksandr Gavenko
  0 siblings, 0 replies; 8+ messages in thread
From: Oleksandr Gavenko @ 2008-09-18 16:44 UTC (permalink / raw)
  To: help-gnu-emacs

Oleksandr Gavenko пишет:
> Problem that you have described in
> 
> GNU Emacs Manual.
> 
> See
> "27. International Character Set Support"
>  - 27.10 Fontsets.
>  - 27.11 Defining fontsets.
> 
> Also from "C.7 Font Specification Options"
> 
> Here is an example, which happens to specify the font whose nickname is 
> С6x13Т:
> 
>      emacs -fn \
>        "-misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-iso8859-1" &
> 
> You can also specify the font in your .Xdefaults file:
> 
>      emacs.font: 
> -misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-iso8859-1

Oh sorry! I stupid!

Try C-x <enter> C, type character set of file
(you must somebody know it) and C-x revert-buffer.

About it read "GNU Emacs Manual" part "27.9 Specifying a Coding System".

Sorry once!


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Trouble viewing accented characters
  2008-09-18 13:41 Trouble viewing accented characters Armando Martins
@ 2008-09-18 17:57 ` Peter Dyballa
       [not found] ` <mailman.19486.1221760691.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 8+ messages in thread
From: Peter Dyballa @ 2008-09-18 17:57 UTC (permalink / raw)
  To: Armando Martins; +Cc: help-gnu-emacs


Am 18.09.2008 um 15:41 schrieb Armando Martins:

> how can I view the accented characters correctly, please?

By setting the right encoding for the text in the buffer! The ISO  
Latin encodings are fine, some MS Losedos code pages (125[02]) also  
have LATIN SMALL LETTER [EO] WITH ACUTE on code points octal \351  
resp. \363.

The mode-line of a recent GNU Emacs shows the encoding used in the  
buffer, the Options menu has a Mule entry which lets you choose  
another coding system by reverting this file now (C-x RET r).

Setting environment variables like LANG or LC_CTYPE to a reasonable  
value can enable GNU Emacs to use this reasonable value to present  
you a text file's contents. You can also try to set

	(prefer-coding-system	 'iso-8859-15)

in your init file.

--
Greetings

   Pete

Bake pizza not war!







^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Trouble viewing accented characters
       [not found] ` <mailman.19486.1221760691.18990.help-gnu-emacs@gnu.org>
@ 2008-09-19 18:30   ` Oleksandr Gavenko
  2008-09-19 19:33     ` Peter Dyballa
       [not found]     ` <mailman.19575.1221852989.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Oleksandr Gavenko @ 2008-09-19 18:30 UTC (permalink / raw)
  To: help-gnu-emacs

Peter Dyballa пишет:
> 
> Am 18.09.2008 um 15:41 schrieb Armando Martins:
> 
>> how can I view the accented characters correctly, please?
> 
> By setting the right encoding for the text in the buffer! The ISO Latin 
> encodings are fine, some MS Losedos code pages (125[02]) also have LATIN 
> SMALL LETTER [EO] WITH ACUTE on code points octal \351 resp. \363.
> 
> The mode-line of a recent GNU Emacs shows the encoding used in the 
> buffer, the Options menu has a Mule entry which lets you choose another 
> coding system by reverting this file now (C-x RET r).
> 
> Setting environment variables like LANG or LC_CTYPE to a reasonable 
> value can enable GNU Emacs to use this reasonable value to present you a 
> text file's contents. You can also try to set
> 
>     (prefer-coding-system     'iso-8859-15)
> 
> in your init file.
> 

Your way if all file in single coding. For my Ukraine I have much text
with cp866, cp1251, koi8-r, uft-16-le, utf-8.

I found the method explain coding system already opened file to emacs by
typing C-x <enter> C, type character set of file
(by <TAB> you can learn what are exist) and C-x revert-buffer.

After emacs understand coding of file you may save file in other coding 
system typing C-x <ret> f. This useful tip then need windows CR/LF
convert to UNIX LF.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Trouble viewing accented characters
  2008-09-19 18:30   ` Oleksandr Gavenko
@ 2008-09-19 19:33     ` Peter Dyballa
       [not found]     ` <mailman.19575.1221852989.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 8+ messages in thread
From: Peter Dyballa @ 2008-09-19 19:33 UTC (permalink / raw)
  To: gavenkoa; +Cc: help-gnu-emacs


Am 19.09.2008 um 20:30 schrieb Oleksandr Gavenko:

> C-x <enter> C


C-x RET c – as in the menu.

--
Greetings

   Pete

Engineer: a mechanism for converting caffeine into designs







^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Trouble viewing accented characters
       [not found]     ` <mailman.19575.1221852989.18990.help-gnu-emacs@gnu.org>
@ 2008-09-19 19:38       ` Oleksandr Gavenko
  2008-09-20 12:38         ` B. T. Raven
  0 siblings, 1 reply; 8+ messages in thread
From: Oleksandr Gavenko @ 2008-09-19 19:38 UTC (permalink / raw)
  To: help-gnu-emacs

Peter Dyballa пишет:
> 
> Am 19.09.2008 um 20:30 schrieb Oleksandr Gavenko:
> 
>> C-x <enter> C
> 
> C-x RET c – as in the menu.
> 
Yea, sorry mistyped.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Trouble viewing accented characters
  2008-09-19 19:38       ` Oleksandr Gavenko
@ 2008-09-20 12:38         ` B. T. Raven
  0 siblings, 0 replies; 8+ messages in thread
From: B. T. Raven @ 2008-09-20 12:38 UTC (permalink / raw)
  To: help-gnu-emacs

Oleksandr Gavenko wrote:
> Peter Dyballa пишет:
>>
>> Am 19.09.2008 um 20:30 schrieb Oleksandr Gavenko:
>>
>>> C-x <enter> C
>>
>> C-x RET c – as in the menu.
>>
> Yea, sorry mistyped.


For the sake of completeness, it's also M-x revert-buffer, not C-x 
revert-buffer.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-09-20 12:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-18 13:41 Trouble viewing accented characters Armando Martins
2008-09-18 17:57 ` Peter Dyballa
     [not found] ` <mailman.19486.1221760691.18990.help-gnu-emacs@gnu.org>
2008-09-19 18:30   ` Oleksandr Gavenko
2008-09-19 19:33     ` Peter Dyballa
     [not found]     ` <mailman.19575.1221852989.18990.help-gnu-emacs@gnu.org>
2008-09-19 19:38       ` Oleksandr Gavenko
2008-09-20 12:38         ` B. T. Raven
     [not found] <mailman.19473.1221753541.18990.help-gnu-emacs@gnu.org>
2008-09-18 16:39 ` Oleksandr Gavenko
2008-09-18 16:44   ` Oleksandr Gavenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).