Daniel Pittman writes: > On Sun, 19 Aug 2001, Lars Magne Ingebrigtsen wrote: > > Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: >> >>> Sometimes I get email which has no predeclared charset. Emacs assumes >>> Latin-1 in those cases. This is good in general. But is there a way >>> to have Emacs inspect the current message and suggest a better >>> charset? >>> >>> In particular, I sometimes know there is Chinese in it, but I don't >>> know if it's GB or Big5 encoded. So I try both until I see a >>> character I recognize. Is there a way to have Emacs/Gnus guess >>> whether it's GB or Big5? >> >> Surely there must be some Mule functions for guessing what charset >> some text is in, but I have no idea what it's called. Anybody? > > `detect-coding-region' I tested the function on the attached files in both Emacs 21 and XEmacs 21.4. I found the one in XEmacs did a good job, but the one in Emacs is almost useless. ShengHuo