質問

I try to write german umlaute to a serialport. When I do this in the dosshel with

echo öäü > com4

it is working correct.

When I create a txt-file with the content öäü and then do

copy test.txt com4

it is not working. The test.txt is saved as default ANSI Textfile (created with Notepad).

Can somebody help me, what I can change to get the textfile working?

役に立ちましたか?

解決

You should save the text file with the encoding that the device expects. If "echo" from the shell works, that encoding is likely the terminal's code page, also known as "OEM code page." It's probably CP850 in your case.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top