Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: unknown charset, gbk
       [not found] <mailman.9624.1206867458.18990.info-gnus-english@gnu.org>
@ 2008-04-17 10:34 ` jidanni
  2008-04-17 10:55   ` William Xu
  2008-04-17 12:52   ` William Xu
  0 siblings, 2 replies; 10+ messages in thread
From: jidanni @ 2008-04-17 10:34 UTC (permalink / raw)
  To: william.xwl; +Cc: info-gnus-english

WX> | (define-coding-system-alias 'gb18030 'gb2312)
WX> | (define-coding-system-alias 'x-gbk   'gb2312)
WX> | (define-coding-system-alias 'gbk     'gb2312)

Is there any better solution? The above leaves lots of holes.
$ iconv -cf gb2312 message|iconv -t gb2312|wc -c message -|sed 2q
    808 message
    734 -
$ iconv -f gbk message|head ...
哪邊可以查到目前還有沒有在開發呢?

非常需要64位元的版本阿~

這麼好的輸入法,這樣pending就太可惜了...

On 3月7日, 上午7時24分, 翔風 <KilluaZaoldyec...@gmail.com> wrote:
> 嗯,WIndows版本也是過了6個多月沒更新了?
>
> On 3月6日, 上午9時31分, Keimoto <m...@keimoto.net> wrote:
>
> > 大家好!
>
> > 想知道月內會否將會釋出新的版本 SCIM-CHEWING 和 LIBCHEWING?
>
> >  (keimoto)

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

* Re: unknown charset, gbk
  2008-04-17 10:34 ` unknown charset, gbk jidanni
@ 2008-04-17 10:55   ` William Xu
  2008-04-17 12:52   ` William Xu
  1 sibling, 0 replies; 10+ messages in thread
From: William Xu @ 2008-04-17 10:55 UTC (permalink / raw)
  To: info-gnus-english

jidanni@jidanni.org writes:

> Is there any better solution? The above leaves lots of holes.
> $ iconv -cf gb2312 message|iconv -t gb2312|wc -c message -|sed 2q
>     808 message
>     734 -
> $ iconv -f gbk message|head ...

[...]

This can display correctly here, encoded as chinese-big5-1 or
chinese-big5-2(Not sure about their differences).  The reason is that
the text you sent contains lots of traditional chinese characters,
gb2312 mostly only deals with simplified chinese characters.  You can
add something like the following(settings on my Mac OS X) to your font
encode family list:

,----
| (chinese-big5-1 . "stheiti*")
| (chinese-big5-2 . "stheiti*")
`----

-- 
William

http://williamxu.net9.org

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

* Re: unknown charset, gbk
  2008-04-17 10:34 ` unknown charset, gbk jidanni
  2008-04-17 10:55   ` William Xu
@ 2008-04-17 12:52   ` William Xu
  1 sibling, 0 replies; 10+ messages in thread
From: William Xu @ 2008-04-17 12:52 UTC (permalink / raw)
  To: info-gnus-english

jidanni@jidanni.org writes:

> Is there any better solution? The above leaves lots of holes.
> $ iconv -cf gb2312 message|iconv -t gb2312|wc -c message -|sed 2q
>     808 message
>     734 -
> $ iconv -f gbk message|head ...

Okay, I got your test mail.  It is also unable to display chinese
characters beyond gb2312.  My above solution is just a workaround for
non-supported charsets.  For real gbk support, you may look at this: 

  http://mule-gbk.sourceforge.net/

But I'm not sure whether it works with emacs 22 or not.  

-- 
William

http://williamxu.net9.org

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

* Re: unknown charset, gbk
  2008-03-30  8:57     ` William Xu
@ 2008-03-30  9:26       ` Nicolas KOWALSKI
  0 siblings, 0 replies; 10+ messages in thread
From: Nicolas KOWALSKI @ 2008-03-30  9:26 UTC (permalink / raw)
  To: info-gnus-english

William Xu <william.xwl@gmail.com> writes:

> I have the following in my config file, you may try it: 
>
> ,----
> | (define-coding-system-alias 'gb18030 'gb2312)
> | (define-coding-system-alias 'x-gbk   'gb2312)
> | (define-coding-system-alias 'gbk     'gb2312)
> `----

This works well; I have no more warnings about gbk now. :-)

Thanks a lot!
-- 
Nicolas

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

* Re: unknown charset, gbk
  2008-03-29 19:04     ` Reiner Steib
@ 2008-03-30  9:22       ` Nicolas KOWALSKI
  0 siblings, 0 replies; 10+ messages in thread
From: Nicolas KOWALSKI @ 2008-03-30  9:22 UTC (permalink / raw)
  To: info-gnus-english

Reiner Steib <reinersteib+gmane@imap.cc> writes:

> On Sat, Mar 29 2008, Nicolas KOWALSKI wrote:
>
>> Sven Joachim <svenjoac@gmx.de> writes:
>>
>>> Here's how you can add that in your Gnus init file:
>>>
>>> (add-to-list 'mm-charset-synonym-alist '(gbk . cp936))
>>
>> I added this to my ~/.gnus; the variable now shows up as:
>>
>> mm-charset-synonym-alist's value is
>> ((gbk . cp936)
> [...]
>> Unfortunately, the error message still occurs.
>
> Does it complain about `gbk' or `cp936' now?

It still complains about `gbk'.

> | emacs-version's value is "21.4.1"
>
> Maybe Emacs 21 doesn't support `cp936' at all or you need to set it
> up: `M-x codepage-setup RET 936 RET'.

It does not work; all I get is "no match" when I hit RET after typing
936. 

-- 
Nicolas

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

* Re: unknown charset, gbk
  2008-03-29 17:49   ` Nicolas KOWALSKI
  2008-03-29 19:04     ` Reiner Steib
@ 2008-03-30  8:57     ` William Xu
  2008-03-30  9:26       ` Nicolas KOWALSKI
  1 sibling, 1 reply; 10+ messages in thread
From: William Xu @ 2008-03-30  8:57 UTC (permalink / raw)
  To: info-gnus-english

Nicolas KOWALSKI <niko@petole.dyndns.org> writes:

> I added this to my ~/.gnus; the variable now shows up as:
>
> mm-charset-synonym-alist's value is
> ((gbk . cp936)
>  (iso885915 . iso-8859-15)
>  (iso8859-15 . iso-8859-15)
>  (big5-hkscs . big5)
>  (unicode . utf-16-le)
>  (ks_c_5601-1987 . euc-kr))
>
>
> Unfortunately, the error message still occurs.
>
> Any idea ?

I have the following in my config file, you may try it: 

,----
| (define-coding-system-alias 'gb18030 'gb2312)
| (define-coding-system-alias 'x-gbk   'gb2312)
| (define-coding-system-alias 'gbk     'gb2312)
`----

-- 
William

http://williamxu.net9.org

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

* Re: unknown charset, gbk
  2008-03-29 17:49   ` Nicolas KOWALSKI
@ 2008-03-29 19:04     ` Reiner Steib
  2008-03-30  9:22       ` Nicolas KOWALSKI
  2008-03-30  8:57     ` William Xu
  1 sibling, 1 reply; 10+ messages in thread
From: Reiner Steib @ 2008-03-29 19:04 UTC (permalink / raw)
  To: info-gnus-english

On Sat, Mar 29 2008, Nicolas KOWALSKI wrote:

> Sven Joachim <svenjoac@gmx.de> writes:
>
>> Here's how you can add that in your Gnus init file:
>>
>> (add-to-list 'mm-charset-synonym-alist '(gbk . cp936))
>
> I added this to my ~/.gnus; the variable now shows up as:
>
> mm-charset-synonym-alist's value is
> ((gbk . cp936)
[...]
> Unfortunately, the error message still occurs.

Does it complain about `gbk' or `cp936' now?

| emacs-version's value is "21.4.1"

Maybe Emacs 21 doesn't support `cp936' at all or you need to set it
up: `M-x codepage-setup RET 936 RET'.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

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

* Re: unknown charset, gbk
  2008-03-29 17:21 ` Sven Joachim
@ 2008-03-29 17:49   ` Nicolas KOWALSKI
  2008-03-29 19:04     ` Reiner Steib
  2008-03-30  8:57     ` William Xu
  0 siblings, 2 replies; 10+ messages in thread
From: Nicolas KOWALSKI @ 2008-03-29 17:49 UTC (permalink / raw)
  To: info-gnus-english

Sven Joachim <svenjoac@gmx.de> writes:

> Here's how you can add that in your Gnus init file:
>
> (add-to-list 'mm-charset-synonym-alist '(gbk . cp936))

I added this to my ~/.gnus; the variable now shows up as:

mm-charset-synonym-alist's value is
((gbk . cp936)
 (iso885915 . iso-8859-15)
 (iso8859-15 . iso-8859-15)
 (big5-hkscs . big5)
 (unicode . utf-16-le)
 (ks_c_5601-1987 . euc-kr))


Unfortunately, the error message still occurs.

Any idea ?

Thanks,
-- 
Nicolas

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

* Re: unknown charset, gbk
       [not found] <mailman.9580.1206804541.18990.info-gnus-english@gnu.org>
@ 2008-03-29 17:21 ` Sven Joachim
  2008-03-29 17:49   ` Nicolas KOWALSKI
  0 siblings, 1 reply; 10+ messages in thread
From: Sven Joachim @ 2008-03-29 17:21 UTC (permalink / raw)
  To: info-gnus-english

On 2008-03-29 16:29 +0100, Nicolas KOWALSKI wrote:

> Gnus sometimes complains of an unknown charset "gbk" when I enter a
> group. Is there something I can do to prevent it or make Gnus accept
> this charset ?

Yes, add an alias to the correct charset in `mm-charset-synonym-alist'.

> This is with the Debian 4.0 default packages:
>
> gnus-version's value is "No Gnus v0.6"
> emacs-version's value is "21.4.1"

The current Gnus CVS already has aliased gbk to cp936:

,----
| 2007-10-08  Reiner Steib  <Reiner.Steib@gmx.de>
| 
| 	* mm-util.el (mm-charset-synonym-alist): Alias gbk to cp936.
`----

Here's how you can add that in your Gnus init file:

(add-to-list 'mm-charset-synonym-alist '(gbk . cp936))

Cheers,
       Sven

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

* unknown charset, gbk
@ 2008-03-29 15:29 Nicolas KOWALSKI
  0 siblings, 0 replies; 10+ messages in thread
From: Nicolas KOWALSKI @ 2008-03-29 15:29 UTC (permalink / raw)
  To: info-gnus-english

Hello,

Gnus sometimes complains of an unknown charset "gbk" when I enter a
group. Is there something I can do to prevent it or make Gnus accept
this charset ?

This is with the Debian 4.0 default packages:

gnus-version's value is "No Gnus v0.6"
emacs-version's value is "21.4.1"

Thanks,
-- 
Nicolas

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

end of thread, other threads:[~2008-04-17 12:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.9624.1206867458.18990.info-gnus-english@gnu.org>
2008-04-17 10:34 ` unknown charset, gbk jidanni
2008-04-17 10:55   ` William Xu
2008-04-17 12:52   ` William Xu
     [not found] <mailman.9580.1206804541.18990.info-gnus-english@gnu.org>
2008-03-29 17:21 ` Sven Joachim
2008-03-29 17:49   ` Nicolas KOWALSKI
2008-03-29 19:04     ` Reiner Steib
2008-03-30  9:22       ` Nicolas KOWALSKI
2008-03-30  8:57     ` William Xu
2008-03-30  9:26       ` Nicolas KOWALSKI
2008-03-29 15:29 Nicolas KOWALSKI

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).