E
Eric bouxirot
hi,
i have one new probleme...
if i execute one command from command line. (subversion software) i get
some text in french...with accent..
but if i execute the same commande from my code :
Dim myProcess As Process = New Process()
myProcess.StartInfo.FileName = EXEName
myProcess.StartInfo.Arguments = Params
myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
myProcess.StartInfo.CreateNoWindow = True
myProcess.StartInfo.UseShellExecute = False
myProcess.StartInfo.RedirectStandardOutput = True
myProcess.StartInfo.StandardOutputEncoding = Text.Encoding.UTF8
myProcess.Start()
myProcess.WaitForExit(30000)
If Not myProcess.HasExited Then
myProcess.Kill()
Else
Dim sOut As StreamReader = myProcess.StandardOutput
ProcOutput = sOut.ReadToEnd()
Endif
i get wrong chars in place of accent chars...
how can i do to get the right encoding ?? (i have try all text.encoding
formats !)
help ! please !
i have one new probleme...
if i execute one command from command line. (subversion software) i get
some text in french...with accent..
but if i execute the same commande from my code :
Dim myProcess As Process = New Process()
myProcess.StartInfo.FileName = EXEName
myProcess.StartInfo.Arguments = Params
myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
myProcess.StartInfo.CreateNoWindow = True
myProcess.StartInfo.UseShellExecute = False
myProcess.StartInfo.RedirectStandardOutput = True
myProcess.StartInfo.StandardOutputEncoding = Text.Encoding.UTF8
myProcess.Start()
myProcess.WaitForExit(30000)
If Not myProcess.HasExited Then
myProcess.Kill()
Else
Dim sOut As StreamReader = myProcess.StandardOutput
ProcOutput = sOut.ReadToEnd()
Endif
i get wrong chars in place of accent chars...
how can i do to get the right encoding ?? (i have try all text.encoding
formats !)
help ! please !