all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gregory Sharp <gregsharp.geo@yahoo.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Garbage display when NULL in file
Date: Sun, 8 Mar 2009 08:08:56 -0700 (PDT)	[thread overview]
Message-ID: <846505.29560.qm@web32003.mail.mud.yahoo.com> (raw)


> > In my current debian emacs (22.2.1), emacs seems to be incorrectly
> > detecting the codeset for files with mixed ascii/data.  The problem
> > is that I get a garbage display (squares, kanji, etc.).  How can
> > I tell emacs not to detect the codeset (or revert to ascii/utf8
> > after it autodetects)?
> 
>   C-x RET c us-ascii RET C-x C-x your-file RET
> 
> Does this do what you want? 

Yes!  Thank you for the hint.  The following also works:

  C-x RET c utf-8 RET C-x C-f your-file RET

Why doesn't emacs use utf-8 (my locale codeset) for this file?  
Can I make this behavior the default?
-- 
Greg Sharp
gregsharp@geocities.com



      




             reply	other threads:[~2009-03-08 15:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-08 15:08 Gregory Sharp [this message]
2009-03-08 19:15 ` Garbage display when NULL in file Eli Zaretskii
2009-03-09  1:19   ` Samuel Wales
2009-03-09  4:09     ` Eli Zaretskii
     [not found] <mailman.2697.1236524942.31690.help-gnu-emacs@gnu.org>
2009-03-08 23:26 ` Miles Bader
  -- strict thread matches above, loose matches on Subject: below --
2009-03-07 16:27 Gregory Sharp
2009-03-07 19:27 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=846505.29560.qm@web32003.mail.mud.yahoo.com \
    --to=gregsharp.geo@yahoo.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.