Hello,
I have tried to convert a Mac text file to Windows using code below.
Encoding Win = Encoding.GetEncoding("Windows-1252");
Encoding Mac = Encoding.GetEncoding("macintosh");
byte[] macBytes = Mac.GetBytes(Row);
byte[] WinBytes = Encoding.Convert(Mac, Win, macBytes);
char[] WinChars = new char[Win.GetCharCount(WinBytes, 0, WinBytes.Length)];
Win.GetChars(WinBytes, 0, WinBytes.Length, WinChars, 0);
string WinString = new string(WinChars);
return WinString;
But, it does not convert e.g. German and Scandinavian characters written in
Mac to proper format in Windows.
How can a textfile written in MAc could be converted into Windows
environment?
Cheers!