I want to enter Chinese character by using INPUT, but when the program running, I cannot enter anything
INPUT n$
PRINT n$
?
Enter Chinese "张三", no response
Press Ctrl+c, terminate the program to return the command line, I got:
d:\exercise>张三
how to enter multibyte character with INPUT statement
-
- Posts: 3
- Joined: Sep 23, 2023 1:55
-
- Posts: 1186
- Joined: May 08, 2006 21:58
- Location: Crewe, England
Re: how to enter multibyte character with INPUT statement
Can't remember the details, but INPUT has its own keboard map similar to the old DOS maps, so only allows 256 character set. I believe you can change it, but I can't rememeber how, and not for standard Chinese. You probably need to go to Windows or FLTK. Sorry, it's not a problem I've pursued in any detail.
-
- Posts: 3
- Joined: Sep 23, 2023 1:55