wrong char printed when reading output from commandline

Asked by Matteo Acquarone

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:

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

English Edit question
SikuliX Edit question
No assignee Edit question
Solved by:
Matteo Acquarone
Last query:
Last reply:
Revision history for this message
Matteo Acquarone (matteoa2) said :

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