[wplug] Converting to UTF-8

Rick Smith rick at rbsmith.com
Thu Jan 23 08:58:04 EST 2003


On Wed, Jan 22, 2003 at 10:19:03PM -0500, J Aaron Farr wrote:
> Hello.
> 
> I've got a lot of files that are apparently not saved in normal UTF-8
> format (I think they're in some DOS format) so Eclipse on Linux won't
> read them correctly.  If I manually open the files in an editor like
> gedit and then "save as" the same file name, then all is well.  Any idea
> of a converting utility that can speed this process up?  I tried
> something simple like dos2unix, but that doesn't do it.

what's the difference between not working and working?
How about running something like:
  # have two versions of file: 'original' and 'modified'
  od -c original > o
  od -c modified > m
  diff -u o m > diffs
  grep '^\-' diffs | head -3 > del
  grep '^\+' diffs | head -3 > add
  cat del add > shortdiffs

Then show us 'shortdiffs'.




More information about the wplug mailing list