Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #8068

Re: CSV text files in several formats ( ANSI, Unicode, UTF-8, ... )

From "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: CSV text files in several formats ( ANSI, Unicode, UTF-8, ... )
Date 2015-05-09 09:06 +0200
Organization A noiseless patient Spider
Message-ID <mikbk1$2jo$1@dont-email.me> (permalink)
References <23619998-fe76-40de-9402-0b873aa6b4be@googlegroups.com> <d955dda1-45ac-497b-90cc-0335f92c43b0@googlegroups.com> <8dcaaac5-cc66-4147-ab69-4806ed3735c7@googlegroups.com>

Show all headers | View raw


Unfortunately not all files have the "hidden" charachters at the beginning 
of the file. So it is not always possible to detect the right format. It is 
only possible to try to have a rate as good as possible limiting the 
algorithms to what will probably arrive.
Even Notepad ++ sometimes does not find the correct encoding. I have the 
same task but until now I have not inserted an automatic detection in our 
programs because of the many possible cases. A WinAPI function exists for 
trying to detect the format, but I do not believe that it works well. 
Currently I have forgot the name of the function. It was hard to find 
comments about it so it seems not to be used often.
Here are some advices.
http://en.wikipedia.org/wiki/Charset_detection

Arne Ortlinghaus
ACS Data Systems 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

CSV text files in several formats ( ANSI, Unicode, UTF-8, ... ) Frans Wauters <info@wautersit.com> - 2015-05-06 02:02 -0700
  Re: CSV text files in several formats ( ANSI, Unicode, UTF-8, ... ) Frans Wauters <info@wautersit.com> - 2015-05-06 02:04 -0700
    Re: CSV text files in several formats ( ANSI, Unicode, UTF-8, ... ) Frans Wauters <info@wautersit.com> - 2015-05-06 07:17 -0700
  Re: CSV text files in several formats ( ANSI, Unicode, UTF-8, ... ) Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2015-05-06 11:16 +0200
    Re: CSV text files in several formats ( ANSI, Unicode, UTF-8, ... ) Frans Wauters <info@wautersit.com> - 2015-05-06 02:47 -0700
  Re: CSV text files in several formats ( ANSI, Unicode, UTF-8, ... ) "Fred Killet" <info@killetsoft.de> - 2015-05-06 12:13 +0200
    Re: CSV text files in several formats ( ANSI, Unicode, UTF-8, ... ) Frans Wauters <info@wautersit.com> - 2015-05-06 04:26 -0700
    Re: CSV text files in several formats ( ANSI, Unicode, UTF-8, ... ) Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2015-05-06 15:43 +0200
      Re: CSV text files in several formats ( ANSI, Unicode, UTF-8, ... ) "Fred Killet" <info@killetsoft.de> - 2015-05-08 17:28 +0200
        Re: CSV text files in several formats ( ANSI, Unicode, UTF-8, ... ) Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2015-05-10 21:04 +0200
  Re: CSV text files in several formats ( ANSI, Unicode, UTF-8, ... ) "Philippe Bayard (Belgium)" <philbayard@gmail.com> - 2015-05-06 03:58 -0700
    Re: CSV text files in several formats ( ANSI, Unicode, UTF-8, ... ) Frans Wauters <info@wautersit.com> - 2015-05-06 04:19 -0700
      Re: CSV text files in several formats ( ANSI, Unicode, UTF-8, ... ) "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> - 2015-05-09 09:06 +0200

csiph-web