so I have no issues sending data from pharo to python but I have a problem recieving data from python��

here is my method

sendMessage: aString

|stream errString isDataAvailable |
stream := SocketStream openConnectionToHostNamed: '127.0.0.1' ��port: 4000 .
stream sendCommand: aString.
isDataAvailable := stream isDataAvailable .
isDataAvailable inspect.
isDataAvailable ifTrue: [ errString := stream nextLineCrLf ��.
�� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� ��errString inspect.
�� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� ��errString = '' ifFalse:��
�� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� [self error: errString.]] .

stream close.


I have used telnet to test the connection , telnet can receive the data fine and it displays it fine. I have encode the data as bytestring from python with ascii encoding and added both a carriage return and a line feed in the end ? whats wrong ?

I tried most method in socket stream even upToEnd message and none gives back any data.��

What am I doing wrong ?��