[MlMt] text/plain?
Sam Hathaway
list.mailmate at munkynet.org
Sat Apr 6 21:14:18 EDT 2019
I don’t think this is an encoding issue. I think it’s an issue with
the original source of the text in the email. (It looks like it was
possibly copied from a terminal interface of some sort… is that
right?)
In the terminal, you can use `tr` to fix this:
```
tr '\xA0' ' ' < mymail.txt > mymail.fixed.txt
```
If that’s not your bag, a sufficiently advanced text editor should be
able to take care of it. In BBEdit (my editor of choice) this will do
suffice:
Find: `\x{A0}`
Replace: ` ` <-a single space character
Grep: on
By the way, the BBEdit command “Zap Gremlins” can take care of all
sorts of weird characters for you. I use it habitually when receiving
“text” from questionable sources. Other text editors may have
similar functionality.
Hope this helps!
-sam
On 6 Apr 2019, at 7:27, Randy Bush wrote:
> i receive an email
>
> User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0)
> Gecko/20100101 PostboxApp/6.1.13
> MIME-Version: 1.0
> Content-Type: text/plain; charset=windows-1252; format=flowed
> Content-Transfer-Encoding: 8bit
> Content-Language: en-US
>
> the text has funny space characters that i see if i save the text to
> disk and look at it with less
>
> <A0>0.<A0><A0> flo....: 2.31 2018.11.03
>
> <A0><A0><A0><A0><A0><A0><A0><A0><A0><A0> 1.<A0><A0> CLIMATE
> ACTION
> <A0><A0><A0><A0><A0><A0><A0><A0><A0><A0><A0><A0><A0> * (N)ew
> (M)odify (D)elete..: N
>
> <A0><A0><A0><A0><A0><A0><A0><A0><A0><A0> 2. * NAME OF CLOUD:
> cumulus
>
> i presume the sender is thunderbird and they have created the text
> with
> some sort of windows encoding on a mac?
>
> how can i save the content as vanilla ascii text?
>
> randy
> _______________________________________________
> mailmate mailing list
> mailmate at lists.freron.com
> https://lists.freron.com/listinfo/mailmate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20190406/422bbdef/attachment.html>
More information about the mailmate
mailing list