![]() another thing is checking with wireshark whats inside the publishresponse from the server maybe its possible to see what might cause the error while decoding on clientside. turn on the logger in debug mode and post the output here so i can see when the error occurs and maybe find out what happens These are some solutions that can help you solve the UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x92 in position in Python. Create another thread if you need to do such a thing """ def datachange_notification( self, node, val, data):Ĭlient = Client( "opc.tcp://localhost:4840") ![]() Do not do expensive, slow or network operation there. Use the questions at the bottom of this template as a guide. ![]() For general questions: Describe exactly what you did and what you want to happen. To receive events from server for a subscription data_change and event methods are called directly from receiving thread. It is easy to see that the accented characters (,, ,, , ) are each represented by a single byte in the received data: 圎1, 圎9, 0圎D, xF3, xFA. Manual conversion: Your next option would be to manually convert the CSV file to UTF-8.For example, in Notepad++, you can easily do that by selecting Convert to UTF-8 in the Encoding menu. Delete irrelevant parts of this template. From opcua import Client from opcua import ua class SubHandler( object):
0 Comments
Leave a Reply. |