unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to determine encoding for file?
@ 2010-01-24 21:29 kj
  2010-01-24 21:59 ` Pascal J. Bourguignon
  2010-01-26  2:58 ` Kevin Rodgers
  0 siblings, 2 replies; 6+ messages in thread
From: kj @ 2010-01-24 21:29 UTC (permalink / raw)
  To: help-gnu-emacs



I've downloaded a large file that is supposed to contain a mixture
of Japanese and English (it's basically a learner's dictionary).
The English is displayed correctly, but not so for the Japanese.

I've tried setting the buffer's coding system to utf-8,
japanese-shift-jis, japanese-shift-jis-mac, japanese-shift-jis-dos
(just guessing).  None worked.

In fact, I'm not even sure that any of these changes of the coding
system achieved *anything*, since the buffer's appearance remained
unchanged throughout all this mucking around.  I used the command
set-buffer-file-coding-system to do this.  Should I need to do
anything besides re-setting the coding system to see a change in
how the file is displayed?

More importantly, is there a better way to determine a file's
correct coding system besides trial and error?

TIA!

~K



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

end of thread, other threads:[~2010-01-26  9:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-24 21:29 How to determine encoding for file? kj
2010-01-24 21:59 ` Pascal J. Bourguignon
2010-01-25  5:57   ` tomas
     [not found]   ` <mailman.146.1264399148.14305.help-gnu-emacs@gnu.org>
2010-01-25 14:55     ` kj
2010-01-26  9:01       ` Thien-Thi Nguyen
2010-01-26  2:58 ` Kevin Rodgers

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