ascii symbol "changed"

vangogh

Active Member
Licensed User
Longtime User
in my communication protocol, I need to use the "÷" simbol (ascii code 247)

when I send the message over tcp, using tcpFlusso.Write(messaggio.GetBytes("UTF8"))

the "÷" symbol get lost and I receive "÷" instead (ascii 195+183)

what can I do? (better than replacing the symbol with another)

thank you
 

vangogh

Active Member
Licensed User
Longtime User
a problem also transmitting the euro "€" simbol...

maybe "UTF8" is not the correct encoding?
 
Upvote 0

vangogh

Active Member
Licensed User
Longtime User
If I understand, here UTF-8 - Wikipedia, the free encyclopedia it seems that only the first 127 ascii code are managed in a "plain" way... when I use a ascii code > 127, the encoding changes and I get problems because on the other side (server side) I have a "raw" program, with no encoding/decoding procedures - it is written in vb6, and there I simply send (and receive) a string...

To have backward compatibility, I will "decode" "÷" to "÷" - dirty but working solution

thank you
 
Last edited:
Upvote 0
Top