You are probably seeing an artifact of encoding mismatch. The Terminal
will display UTF-8, but vi doesn't know about UTF-8, and is some of
your text coming from Classic MacOS or a DOS box? I find I need to use
an editor like jEdit which allows me good control over the text
encoding I intend.
Anyone else got a favorite editor for writing/converting text on MacOS
X.2 when Unicode is important?
Good luck!
--Chris
On Monday, September 30, 2002, at 12:54 PM, Adriano Allora wrote:
> On the one hand I didn't express myself very well, but for the other
> hand I found other aspects of the problem.
>
> Actual situation: I work with mac osx.2, vi editor, a pack of dos
> files to work on.
> When I open my files with vi I see some strings instead of stressed
> letters and signs.
> For instance:
> carriage return = ^M
> u grave = \xf9
> e grave = \xe8
> a grave = \xe0
> o grave = \xf2
> euro sign = \x80
> i grave = \xec
> BUT, if I write the same letters and signs on the editor, they appears
> as:
> carriage return =
> a grave = \xc3\xa0
> e grave = \xc3\xa8
> e acute = \xc3\xa9
> u grave = \xc3\xb9
> i grave = \xc3\xac
> o grave = \xc3\xb2
> euro: \xe2\x82\xac
>
> so, I don't know I can face the problem: to create an array of strings
> to substitute is a non-sense, because of I haven't got two lists in
> one-to-one correspondence... er, I suppose (I'm not sure).
> What's yous opinion about?
>
> adr
>
>
>
>
> PS: I'm particulary grateful to Robin and Ken Williams! : )
>