[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Character Encoding

From: John Aldridge <john.aldridge_at_informatix.co.uk>
Date: Fri, 27 Jun 2008 10:38:43 +0100

Kevin Grover wrote:
> If you used Notepad in Windows, you can use 'Save-As' and choose an
> encoding. Choices are: ANSI, 'Unicode', 'Unicode BIG ENDIN', or
> 'UTF-8'. If you use Notepad to 'Save As' and choose UTF8 and over
> write the original file. svn will probalby then see the file as
> changed (because it was originally in the native windows encoding, but
> is now in another encoding).
>
> Try saving it as Unicode or UTF8 and see how vi behaves on AIX. Keep
> in mind. UTF8 files have no indicator in them that the are utf8 ---
> so if your aix environment is not natively running in utf8 vi will be
> running using another encoding. If you use vim (VI iMproved) on aix
> it will look for the -*- coding: utf8 -*- line (if you added it).

Not to disagree with the bulk of this post, but when Notepad writes UTF8
or either flavour of UTF16 it starts the file with a standard Unicode
byte order mark to indicate the encoding.

I have no idea whether AIX/vi is bright enough to act on this BOM.

-- 
Cheers,
John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-27 11:39:05 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.