Mannequin666

Hi,

I spent whole day to resolve my problem and i have failed. Here is some details. I have got two applications. One is typical C# console application (lets call it A) and second one is C# Windows Application (app B). Both written using framework 1.1

I'm using application A in application B by simply creating new process. Also, I'm using standard output redirection to establish communication between app A and B. And here starts my problem. In StandardOutput i get wrong characters, i mean i'm writing to console string (that string contains characters typical for my locale) and when i'm reading that string in app B i get string that lacks of some characters. I noticed that my console application uses encoding IBM852 (CP852) and StandardOutput uses Windows-1250 encoding. It seems that encoding autodetection failed. What can i do to fix that problem Is there any posibility to change Console.Out encoding to Encoding.Default or to obtain CurrentEncoding in StandardOutput that is correct In .NET 2.0 i spoted OutputEncoding property (or so), what about .NET 1.1

TIA,
M




Re: Visual C# General Text encoding mismatch, .NET 1.1, console vs windows app

cjard

Arent there far better ways of doing process interop than reading/writing standard in/out You seem to have the source for both apps...



Re: Visual C# General Text encoding mismatch, .NET 1.1, console vs windows app

Mannequin666

Thanks for replay, it seems i have to introduce some corrections and perform ipc in some other way. What are the alternative solutions for IPC in C#