Re: CStdioFile is broken in about 6 ways

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Norman Diamond" <ndiamond@xxxxxxxxxxxxxxxx> ha scritto nel messaggio
news:%23g0XEeSIIHA.1212@xxxxxxxxxxxxxxxxxxxxxxx

The only complete and *quality* implementation of CStdioFile extension
I've seen is an extension by our Tom; he developed code which can manage
all cases: UTF-8, ANSI, UTF-16 both LE and BE, etc.

Tom Serface? -->ping<--

Yes, Tom Serface.
(I think he is also the only Tom here...)

I tend to use only UTF-8 for external text file

OK sure, I'll be glad to *write* UTF-8 in this particular case because my
output files won't be reread by Excel (or Notepad or Word or ... MFC-based
programs, I think).

Notepad shipped with Windows XP SP2 and Word 2003 do read UTF-8.
I've just tested that.

But I have to *read* Excel-style tab delimited text, and that's ANSI.

So, CStdioFile is not good for ANSI?
Have you tried CodeProject's CStdioFileEx?
And I think that at least standard C run-time library file functions (like
fopen, etc.) are good for ANSI.
(Before becoming aware of Unicode, I used to read ANSI files with standard
CRT functions.)

Giovanni



.



Relevant Pages

  • Re: Want Input boxes to accept unicode strings on Standard Window
    ... somehow is supposed to be better than Ansi, ... Windows Notepad calls "Unicode"? ... and UTF-16 uses up to two 16-bit characters. ... so UTF-8 and Ansi are ...
    (microsoft.public.vc.mfc)
  • Re: Want Input boxes to accept unicode strings on Standard Window
    ... Yet it is somehow is supposed to be better than Ansi, ... Is UTF-16 the same as what Windows Notepad calls "Unicode"? ... Both UTF-8 and UTF-16 are complete encodings of Unicode. ...
    (microsoft.public.vc.mfc)
  • Re: UTF-8 Erkennung
    ... Ist das ohne weitere Annahmen überhaupt immer entscheidbar? ... Eine UTF-8 kodierte Datei kann zwar prinzipiell als valides ANSI ...
    (de.comp.lang.java)
  • Re: Unicode question
    ... to UTF encoding, and it would work in UTF-8 too. ... for ANSI can back-fire far quicker than mistreating UTF-16 for UCS-2. ... This means that a simple ANSI search for characters in ...
    (borland.public.delphi.non-technical)
  • Re: Convert to UTF-8
    ... When it comes out of the database, ... UTF-8 is ANSI: ... , you start using characters ...
    (microsoft.public.access.gettingstarted)