1753822 Members
9434 Online
108805 Solutions
New Discussion юеВ

Re: Read text file

 
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Read text file

Probably his working machine is UTF enabled or similar.
Vibhor Kumar Agarwal
Suraj K Sankari
Honored Contributor

Re: Read text file

Hi Dennis,

as he saied that he can cat the file but not able to vi the file.

Suraj
Dennis Handly
Acclaimed Contributor

Re: Read text file

>Vibhor: Probably his working machine is UTF enabled or similar.

And probably not HP-UX.

>Suraj: as he said that he can cat the file but not able to vi the file.

You are confused. He really said, that when he used vi, he got garbage. That's because vi doesn't support UTF-16, that's not a multi-byte character code sets.

If cat works, it's probably because the output is being sent back to a linux machine.
Steven Schweda
Honored Contributor

Re: Read text file

> You are confused. He really said, that when
> he used vi, he got garbage.

As _I_ recall, he said ("Apr 14, 2009
07:02:05 GMT"):

> [...] A server ( which the server generate
> the file ) can vi and cat it , but others
> can't vi it but can cat it [...]

I _asked_:

> What are these servers? "uname -a"?

with no apparent result.

Most likely, one of the "vi" programs is
smarter than the other (perhaps by being
"vim" instead of "vi"), but given the
unidirectionality of the information flow
here, we may never know.
Dennis Handly
Acclaimed Contributor

Re: Read text file

>Steven: As _I_ recall

You have to read more replies (and minds :-), "when read it, it pops below" and "Little-endian UTF-16 Unicode".