You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generally, a Chinese character should be 3 bytes using utf8 encoding, and 2 bytes using gbk, so usually utf8_to_gbk1 should return a smaller number (compared to the input parameters), but I observed by printing the debug log, The return value of utf8_to_gbk1 is always larger than expected.
In fact, I also discovered through packet capture that when I connect to the gbk server and send commands containing Chinese characters, there is always a string of zeros after the bytes actually sent on the socket.
Please help me check if something is wrong with utf8_to_gbk1. Thank you.
The text was updated successfully, but these errors were encountered:
Generally, a Chinese character should be 3 bytes using utf8 encoding, and 2 bytes using gbk, so usually utf8_to_gbk1 should return a smaller number (compared to the input parameters), but I observed by printing the debug log, The return value of utf8_to_gbk1 is always larger than expected.
In fact, I also discovered through packet capture that when I connect to the gbk server and send commands containing Chinese characters, there is always a string of zeros after the bytes actually sent on the socket.
Please help me check if something is wrong with utf8_to_gbk1. Thank you.
The text was updated successfully, but these errors were encountered: