Gnus development mailing list
 help / color / mirror / Atom feed
* Charset Windows-1252
@ 2000-10-05 16:45 Per Abrahamsen
  2000-10-05 16:46 ` ShengHuo ZHU
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Per Abrahamsen @ 2000-10-05 16:45 UTC (permalink / raw)


How do I declare Windows-1252 an alias for Latin 1?

Or better, how do I make Gnus show bytes from "unknown" charsets as if
they were Latin 1 characters, instead of as \ooo?

The description lines for the Norwegian newsgroups are also shown as
\ooo when they contain 8-bit characters.  I'd like to see them as
Latin-1. 



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

* Re: Charset Windows-1252
  2000-10-05 16:45 Charset Windows-1252 Per Abrahamsen
@ 2000-10-05 16:46 ` ShengHuo ZHU
  2000-10-05 17:14   ` Per Abrahamsen
  2000-10-05 17:12 ` Jesper Harder
  2000-10-05 19:49 ` Dave Love
  2 siblings, 1 reply; 6+ messages in thread
From: ShengHuo ZHU @ 2000-10-05 16:46 UTC (permalink / raw)


Per Abrahamsen <abraham@dina.kvl.dk> writes:

> How do I declare Windows-1252 an alias for Latin 1?

You could use define-coding-system-alias, 

    (define-coding-system-alias 'windows-1252 'iso-8859-1)

Or, only within Gnus, you could do

    (add-to-list 'mm-charset-synonym-alist '(windows-1252 . iso-8859-1))

> Or better, how do I make Gnus show bytes from "unknown" charsets as
> if they were Latin 1 characters, instead of as \ooo?

(setq gnus-newsgroup-ignored-charsets '(gnus-unknown))

Or set the group parameter "Ignored charsets" in some special groups.

> The description lines for the Norwegian newsgroups are also shown as
> \ooo when they contain 8-bit characters.  I'd like to see them as
> Latin-1. 

ShengHuo



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

* Re: Charset Windows-1252
  2000-10-05 16:45 Charset Windows-1252 Per Abrahamsen
  2000-10-05 16:46 ` ShengHuo ZHU
@ 2000-10-05 17:12 ` Jesper Harder
  2000-10-05 19:49 ` Dave Love
  2 siblings, 0 replies; 6+ messages in thread
From: Jesper Harder @ 2000-10-05 17:12 UTC (permalink / raw)


Per Abrahamsen <abraham@dina.kvl.dk> writes:

> How do I declare Windows-1252 an alias for Latin 1?

I have:

(define-coding-system-alias 'windows-1252 'iso-8859-1)

I don't know if it's the right way.

> Or better, how do I make Gnus show bytes from "unknown" charsets as if
> they were Latin 1 characters, instead of as \ooo?

You can say:

(standard-display-ascii ?\205 "...")    ; ellipsis
(standard-display-ascii ?\206 "+")      ; dagger

and so on. I learned this from gnu.emacs.sources just a few hours
ago. There's a list at <http://www4.ncsu.edu/~tlroche/msChars.el>

-- 
Jesper Harder       Student: Master, does Emacs have the Buddha Nature?
                    Master:  Why not? It has damn near everything else!



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

* Re: Charset Windows-1252
  2000-10-05 16:46 ` ShengHuo ZHU
@ 2000-10-05 17:14   ` Per Abrahamsen
  0 siblings, 0 replies; 6+ messages in thread
From: Per Abrahamsen @ 2000-10-05 17:14 UTC (permalink / raw)


ShengHuo ZHU <zsh@cs.rochester.edu> writes:

> > Or better, how do I make Gnus show bytes from "unknown" charsets as
> > if they were Latin 1 characters, instead of as \ooo?
> 
> (setq gnus-newsgroup-ignored-charsets '(gnus-unknown))

Thanks, it works fine.




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

* Re: Charset Windows-1252
  2000-10-05 16:45 Charset Windows-1252 Per Abrahamsen
  2000-10-05 16:46 ` ShengHuo ZHU
  2000-10-05 17:12 ` Jesper Harder
@ 2000-10-05 19:49 ` Dave Love
  2000-10-06  2:59   ` Jesper Harder
  2 siblings, 1 reply; 6+ messages in thread
From: Dave Love @ 2000-10-05 19:49 UTC (permalink / raw)


For what it's worth, `codepage-setup' gives you (a complete set of?)
the evil coding systems.



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

* Re: Charset Windows-1252
  2000-10-05 19:49 ` Dave Love
@ 2000-10-06  2:59   ` Jesper Harder
  0 siblings, 0 replies; 6+ messages in thread
From: Jesper Harder @ 2000-10-06  2:59 UTC (permalink / raw)


Dave Love <d.love@dl.ac.uk> writes:

> For what it's worth, `codepage-setup' gives you (a complete set of?)
> the evil coding systems.

It works for some of the codepages, but apparently windows-1252 isn't
supported:

(codepage-setup 1252)
=> Unsupported codepage cp1252

-- 
Jesper Harder       Student: Master, does Emacs have the Buddha Nature?
                    Master:  Why not? It has damn near everything else!



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

end of thread, other threads:[~2000-10-06  2:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-05 16:45 Charset Windows-1252 Per Abrahamsen
2000-10-05 16:46 ` ShengHuo ZHU
2000-10-05 17:14   ` Per Abrahamsen
2000-10-05 17:12 ` Jesper Harder
2000-10-05 19:49 ` Dave Love
2000-10-06  2:59   ` Jesper Harder

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 NNTP newsgroup(s).