Reading arduino serial connection in python: Unknown characters

I’m using Python to talk to my Arduino using the pyserial module.

import serial
ser=serial.Serial('/dev/ttyUSB0', 115200)

I get the following results:

That’s what I need.

But if I close port and open it again, I get the following:

ser=serial.Serial('/dev/ttyUSB0', 115200)

What are these symbols? How do I get the correct characters?

My OS is Ubuntu

How do I get the correct characters?

Send the correct ones.

Opening the serial port resets the Arduino. Reading serial data while it is resetting is silly.

Have a look at this Python - Arduino demo.