> That's the real question isn't it! :) Unfortunately, that really depends on
> the source of the file. If you are unable to ask the person that created the
> file, try Unicode and keep your fingers crossed!
I found out that the file is in ASCII using the Eastern European code
page, and that's why it doesn't work. My question was where can I get
more information about using character encodings and conversions in
.NET, so that I can make it work. I found the MSDN documentation to be
rather short.
Thanks,
Bart.
Michael - 30 Aug 2006 15:31 GMT
You mean ANSI then, right? Take a look at
System.Text.Encoding.GetEncoding().
Resources to help you. Good question. I've bene fortunate, the last time I
had to deal with this was many years ago as we have been able to ensure that
files that we needed to parse used UTF8. Try:
Links -
overview - http://www.yoda.arachsys.com/csharp/unicode.html
MS's Global Dev Portal - http://www.microsoft.com/globaldev/default.mspx
Books (I haven't look at any of these so don't know how good they are) -
.NET Internationalization: The Developer's Guide to Building Global
Windows and Web Applications - http://www.bookpool.com/sm/0321341384
Internationalization and Localization Using Microsoft .NET -
http://www.bookpool.com/sm/1590590023
Michael
> > That's the real question isn't it! :) Unfortunately, that really depends on
> > the source of the file. If you are unable to ask the person that created the
[quoted text clipped - 8 lines]
> Thanks,
> Bart.
bart.kowalski@gmail.com - 31 Aug 2006 07:18 GMT
> You mean ANSI then, right? Take a look at
> System.Text.Encoding.GetEncoding().
<snip>
Thanks. It works with GetEncoding(1250). The link you provided contains
some useful information too.
Regards,
Bart.
Cor Ligthert [MVP] - 30 Aug 2006 15:54 GMT
Bart,
Maybe does this help you to find the right code page you have to convert.
http://www.vb-tips.com/dbPages.aspx?ID=cca7e08a-9580-42b3-beff-76c81839e6c9
As the v is not used in Polish, does the rest of the world as far as I know
not use the l with hypen in it and therefore everybody outside Polen is
mostly saying Walensa.
You should see what "wauwelen" means in Dutch as you are not a fan of him
:-)
Cor
>> That's the real question isn't it! :) Unfortunately, that really
>> depends on
[quoted text clipped - 10 lines]
> Thanks,
> Bart.