Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #13575 > unrolled thread

We NEED this function.

Started byno.top.post@gmail.com
First post2015-02-03 17:34 +0000
Last post2015-02-09 11:43 +0000
Articles 4 — 4 participants

Back to article view | Back to comp.os.linux.misc


Contents

  We NEED this function. no.top.post@gmail.com - 2015-02-03 17:34 +0000
    Re: We NEED this function. Rich <rich@example.invalid> - 2015-02-03 18:17 +0000
      Re: We NEED this function. Keith Keller <kkeller-usenet@wombat.san-francisco.ca.us> - 2015-02-03 13:48 -0800
      Re: We NEED this function. Unknown <dog@gmail.com> - 2015-02-09 11:43 +0000

#13575 — We NEED this function.

Fromno.top.post@gmail.com
Date2015-02-03 17:34 +0000
SubjectWe NEED this function.
Message-ID<mar0ru$hak$1@dont-email.me>
That I can't know how this paste looks on your screen, is further proof
of the need for such a non-ASCII-cleaner and general purpose string-translator,
even replacing eg. `fromdos`.
--

-> echo " isnAÄt al" |hexdump -C ==
00000000  20 69 73 6e c2 80 74 20  61 6c 0a                 | isnAÄ.t al.|

The 2-byte:c2 80; which should be a <single quote> is probably generated by
M$, although a competent emacs user posts similar <errors> *here*.
--
`tr` could be extended to do: 
tR LenStr1 LenStr2 ByteString1 ByteString2
--
So to clean the above-example-text-file, use:
   tR 2 1 c2 80 27

PS. this same problem came up in my recent query re. how to fix:
mimed lin=
es which

Apart from finding the customised tool, the best solution offered
involved using awk!!

[toc] | [next] | [standalone]


#13578

FromRich <rich@example.invalid>
Date2015-02-03 18:17 +0000
Message-ID<mar3c2$neh$4@dont-email.me>
In reply to#13575
In comp.os.linux.misc no.top.post@gmail.com wrote:
> -> echo " isnAÄt al" |hexdump -C ==
> 00000000  20 69 73 6e c2 80 74 20  61 6c 0a                 | isnAÄ.t al.|

> The 2-byte:c2 80; which should be a <single quote> is probably generated by
> M$, although a competent emacs user posts similar <errors> *here*.

That 2-byte sequence is a valid UTF-8 encoding of a hex unicode code
point 0x80 character.

See this: http://www.ltg.ed.ac.uk/~richard/utf-8.cgi?input=c2+80&mode=bytes

> Apart from finding the customised tool, the best solution offered
> involved using awk!!

Actually, the best solution offered pointed you to the correct tool for
the job, the 'mimencode' command, but you simply, as usual, ignored it
and continued ranting.

[toc] | [prev] | [next] | [standalone]


#13591

FromKeith Keller <kkeller-usenet@wombat.san-francisco.ca.us>
Date2015-02-03 13:48 -0800
Message-ID<pas7qbxs84.ln2@goaway.wombat.san-francisco.ca.us>
In reply to#13578
["Followup-To:" header set to comp.os.linux.misc.]

On 2015-02-03, Rich <rich@example.invalid> wrote:
> In comp.os.linux.misc no.top.post@gmail.com wrote:
>
> Actually, the best solution offered pointed you to the correct tool for
> the job, the 'mimencode' command, but you simply, as usual, ignored it
> and continued ranting.

This is a standard tactic of the "Chris Glur" troll (and no.top.post is
one of its nymshifts).

--keith

-- 
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

[toc] | [prev] | [next] | [standalone]


#13664

FromUnknown <dog@gmail.com>
Date2015-02-09 11:43 +0000
Message-ID<pan.2015.02.09.11.51.51@gmail.com>
In reply to#13578
On Tue, 03 Feb 2015 18:17:38 +0000, Rich wrote:

> In comp.os.linux.misc no.top.post@gmail.com wrote:
Let me RE-insert the text which was deceptively snipped when Rich wrote:-

] That I can't know how this paste looks on your screen, is further proof
] of the need for such a non-ASCII-cleaner and general purpose 
] string-translator, even replacing eg. `fromdos`.

>> -> echo " isnAÄt al" |hexdump -C ==
>> 00000000  20 69 73 6e c2 80 74 20  61 6c 0a                 | isnAÄ.t
>> al.|
> 
>> The 2-byte:c2 80; which should be a <single quote> is probably
>> generated by M$, although a competent emacs user posts similar <errors>
>> *here*.
> 
> That 2-byte sequence is a valid UTF-8 encoding of a hex unicode code
> point 0x80 character.
> 
Yes. I can also embed <valid unicode chinese:ELEFANT char> in my ASCII
mails.

> See this:
> http://www.ltg.ed.ac.uk/~richard/utf-8.cgi?input=c2+80&mode=bytes
> 
>> Apart from finding the customised tool, the best solution offered
>> involved using awk!!
> 
> Actually, the best solution offered pointed you to the correct tool for
> the job, the 'mimencode' command, but you simply, as usual, ignored it
> and continued ranting.

It's not about 'memencode' that was just an example.
`tr`, `sed` ..are not restricted to <your current concern>.

---
I want to speak to the injunyear, not the sales clerk.

The sales clerk just wants to sell me "the correct tool for the job".
That's not how *nix works.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.os.linux.misc


csiph-web