From: Paul Lutus Date: 2006-12-07T08:05:08+09:00 Subject: Re: replace delimiter in unicode encdoded file ciapecki wrote: > Another question following up. > Is there a way to find out in what encoding is the file encoded (is it > ucs-2le or utf-8)? > when I open a file in VIM I can check it with :set fileencoding > so there must be any way to recognize the file and its encoding. The fact that you can choose a particular encoding doesn't mean that encoding is innate to the file. In the case of a unicode text file without an identifying header, strictly speaking it is not possible to determine the encoding -- I mean, apart from a human being using common sense and text recognition. -- Paul Lutus http://www.arachnoid.com