Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.sdk
Windows-1252 code page Encoding
Emmanuel STAPF
8/29/2002 12:50:00 AM
Hi,
Is there a way to read a plain text file that contains character whose code
are between 0 and 255? None of the predefined Encoding instances do what I
want.
Thanks,
Manu
1 Answer
NETMaster
8/29/2002 9:44:00 AM
0
If you use Encoding.Default,
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemTextEncodingClassDefaul...
then .NET uses the current 'ANSI' codepage:
http://www.microsoft.com/globaldev/reference...
from windows system settings and this is often 1252.
To use exactly 1252, write
Encoding ec1252 = Encoding.GetEncoding( 1252 );
--
NETMaster (Thomas Scheidegger)
http://www.cetus-links.org/oo_c...
"Emmanuel STAPF" <manus_no_spam@eiffel.com> wrote in message news:OqzYDUuTCHA.1424@tkmsftngp10...
> Is there a way to read a plain text file that contains character whose code
> are between 0 and 255? None of the predefined Encoding instances do what I
> want.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Windows-1252 code page Encoding
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password