Re: CStdioFile is broken in about 6 ways
- From: "Giovanni Dicanio" <giovanni.dicanio@xxxxxxxxxx>
- Date: Wed, 7 Nov 2007 12:14:48 +0100
"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
.
- Follow-Ups:
- Re: CStdioFile is broken in about 6 ways
- From: Norman Diamond
- Re: CStdioFile is broken in about 6 ways
- References:
- CStdioFile is broken in about 6 ways
- From: Norman Diamond
- Re: CStdioFile is broken in about 6 ways
- From: Giovanni Dicanio
- Re: CStdioFile is broken in about 6 ways
- From: Norman Diamond
- CStdioFile is broken in about 6 ways
- Prev by Date: Re: utf8conv (Re: CStdioFile is broken in about 6 ways)
- Next by Date: is it possible to use non square icons in CListCtrl's imagelist
- Previous by thread: Re: CStdioFile is broken in about 6 ways
- Next by thread: Re: CStdioFile is broken in about 6 ways
- Index(es):
Relevant Pages
|