moses-palmer / pynput

Sends virtual input commands
GNU Lesser General Public License v3.0
1.79k stars 248 forks source link

wirte chinese show question mark. #407

Open kyzrong opened 3 years ago

kyzrong commented 3 years ago

I use the pynput library to simulate keyboard input, found that some software (mostly) input Chinese, show normal, but there are individual software input Chinese, but show a question mark.

https://user-images.githubusercontent.com/49386775/132176845-025b234b-00e7-4f4e-8db9-d3c0b3479a4a.mp4

moses-palmer commented 3 years ago

Thank you for your report.

Does typing Chinese characters normally work in these application? Could it be caused by them not sporting a font that supports Chinese characters?

You might be able to test the latter hypothesis by using pynput to type a text into one of the applications, then marking the text and copying it, and finally pasting into an application that actually works. If you get the expected text, this is probably caused by a font issue.