Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista file management

Vista - How to tell SED to emit output in 8-bit ASCII only?

Reply
 
Old 03-29-2009   #1 (permalink)
Michael Moser


 
 

How to tell SED to emit output in 8-bit ASCII only?

I am sure there are better places/forums to ask the below question, but I didn't find any. If you know a better place please advise!

I have to mangle some "plain ASCII" text file (i.e. 8 bits/characters where the text DOES contain characters like Umlauts and accented characters from the upper 7-bits range, i.e. with hex codes in [128..254]).
For this I am trying to use SED which I downloaded as part of cygwin package. Alas, SED emits the result using Unicode-16 characters (i.e. 16 bits/characters), which the program for which the output is intended can't handle.
Can one tell SED to NOT emit Unicode-16 characters but force it to emit Unicode-8 only?

Michael


My System SpecsSystem Spec
Old 03-29-2009   #2 (permalink)
Mike Torello


 
 

Re: How to tell SED to emit output in 8-bit ASCII only?

"Michael Moser" <michael-nospam.moser@xxxxxx> wrote:
Quote:

>I am sure there are better places/forums to ask the below question,
>but I didn't find any. If you know a better place please advise!
It most certainly does NOT belong in a group for discussing Vista
issues.

Try...

comp.editors

My System SpecsSystem Spec
Old 03-29-2009   #3 (permalink)
Michael Moser


 
 

Re: How to tell SED to emit output in 8-bit ASCII only?

Mike Torello wrote:
Quote:

> "Michael Moser" <michael-nospam.moser@xxxxxx> wrote:
>
Quote:

>> I am sure there are better places/forums to ask the below question,
>> but I didn't find any. If you know a better place please advise!
>
> It most certainly does NOT belong in a group for discussing Vista
> issues.
I know, but since I expected to find here are all the file(-mangling) and sys-admin gurus I hoped, that one of them might know me a pointer...
Quote:

> Try...
>
> comp.editors
Do you by chance also have a news server handy that features that NG?

Michael

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Unicode or ASCII PowerShell
Re: ASCII or TBCP Vista print fax & scan
Ascii VB Script
Calling List<T>.AddRange with Reflection.Emit .NET General
Better HTML-ized output to file unicode/ascii thing PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46