1
Bug reports / Re: Strange chars in TAR file
« on: February 05, 2008, 11:07:06 PM »
A little update:
I did some testing, not sure if this helps but the chars that i got are the same you would get from cmd if the input has been from Windows, i.e. if you encode a textfile in Windows ANSI (cp1252) and look at it through a DOS prompt wich (at least on my system, think its European standard though) uses cp850 you get the same phenomena of switched chars. What encoding are your TAR routine using? Is it an explicit choice of codepage or "system default", if the latter i guess its Microsoft ANSI.
I've done some simple textapps in C# and this is - at least to me - a problem that i bumped into several times, since DOS, Windows and the framework wants different ways of encoding their files.
I did some testing, not sure if this helps but the chars that i got are the same you would get from cmd if the input has been from Windows, i.e. if you encode a textfile in Windows ANSI (cp1252) and look at it through a DOS prompt wich (at least on my system, think its European standard though) uses cp850 you get the same phenomena of switched chars. What encoding are your TAR routine using? Is it an explicit choice of codepage or "system default", if the latter i guess its Microsoft ANSI.
I've done some simple textapps in C# and this is - at least to me - a problem that i bumped into several times, since DOS, Windows and the framework wants different ways of encoding their files.