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
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 "?"
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
there is extended ascii, but your character would be 164, not 241. http://www.asciitable.com/ You have to find out what your device supports.
char 241: http://www.theasciicode.com.ar/extended-ascii-code/plus-minus-sign-ascii-code-241.html