Question

I want to send the ASCII code 241 which is a "ñ" over the serial port. However at the other end of the Port I always get a "?" instead of an "ñ". Why is the character changed?

MessageBox.Show(Chr(241))          'gives "ñ"
SerialPort1.Write(Chr(241))        'gives "?"
Was it helpful?

Solution 2

So i found the Problem I just added now: SerialPort1.Encoding = System.Text.Encoding.GetEncoding(1252) and it works.

Thx anyway for all the help

OTHER TIPS

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top