[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to scan file for non-ascii chars (eg cut-n-paste from ms-word)
From: |
Teemu Likonen |
Subject: |
Re: how to scan file for non-ascii chars (eg cut-n-paste from ms-word) |
Date: |
Wed, 19 Jan 2011 06:38:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2.92 (gnu/linux) |
* 2011-01-18 19:54 (UTC), David Combs wrote:
>>> What I'd like to do is change those "strange" characters to their
>>> plain-ascii "equivalent", so to speak. Like '"' for double quote
>>> (left OR right), etc.
> What'd be nice is something that went through the whole buffer *once*,
> doing the "right thing" with each non-ascii char.
I don't know if Linux system's "iconv" utility is available in other
operating systems but at least GNU/Linux users could do it with this:
C-u M-x shell-command-on-region RET iconv -t ascii//translit RET
with the region being the whole buffer. RET means <Enter> key, in Emacs
speak.
Message not available