Malformed UTF-8 (category Ma: Malformed, bad data)

Thank you all for the help.
my code look like this now:

using LibSerialPort

ports = get_port_list()
sp = LibSerialPort.open(ports[1], 115200, ndatabits=8, nstopbits=1)

datain = []
while bytesavailable(sp) > 0
  push!(datain, read(sp,UInt8))
end
close(sp)

and now it’s working fine