Re: to read a textfile regarding his format
- From: "Michel Posseth [MCP]" <MSDN@xxxxxxxxxxx>
- Date: Sun, 14 May 2006 08:49:30 +0200
with the boolean in the constructor of the streamreader you can set it to
automaticly detect the Byte Order Mark
regards
Michel Posseth
"andreas" <andreas@xxxxxxxxxx> schreef in bericht
news:6Zn9g.422959$PO.11297938@xxxxxxxxxxxxxxxxxxxxxxxx
A textfile can have different formats like ANSI,UTF8, Unicode ...
Using streamreader for a textfile can have different results for chars
like
é,à,è....depending of the fileformat.
To solve this problem I have in the code analysed the chars in the
beginning
of the textfile, named the BOM to see the system.text.encoding for using
this information in the streamreader.
But my question is :
Is there a way that vb.net can do this automatically?
Thanks for any response
.
- Follow-Ups:
- Re: to read a textfile regarding his format
- From: andreas
- Re: to read a textfile regarding his format
- References:
- to read a textfile regarding his format
- From: andreas
- to read a textfile regarding his format
- Prev by Date: Hide an application to taskbar by the clock
- Next by Date: Re: Session variable as string (array)
- Previous by thread: to read a textfile regarding his format
- Next by thread: Re: to read a textfile regarding his format
- Index(es):
Relevant Pages
|