wrong char printed when reading output from commandline

Asked by Matteo Acquarone

hello,
I have a commandline windows sw that outputs a string, the output I can see from the commandline is for example

<email address hidden>

In the sikulix script I'm using

subprocess import Popen, PIPE, STDOUT
process = Popen([dirPath+"\\\CmdLineSw.exe","-d", strPass], stdout=PIPE, stderr=PIPE)
stdout, stderr = process.communicate()

to launch the commandline and retrieve the output as a string without the windows cmd be visible
When reading the same from within sikulix I have some strange char in the printout:
Username@=username�mailserver�com

this is the line I use to print (I've put the "@" in the constant part of the printout to check if it was printable):

print "Username@=" + strPass

What am I missing?
Thanks in advance

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Matteo Acquarone
Solved:
Last query:
Last reply:
Revision history for this message
Matteo Acquarone (matteoa2) said :
#1

Hi all,
I'm sorry, there was a problem in the string converter, all ok!