how to enter multibyte character with INPUT statement

Windows specific questions.
Post Reply
yellow_river
Posts: 3
Joined: Sep 23, 2023 1:55

how to enter multibyte character with INPUT statement

Post by yellow_river »

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>张三
jevans4949
Posts: 1186
Joined: May 08, 2006 21:58
Location: Crewe, England

Re: how to enter multibyte character with INPUT statement

Post by jevans4949 »

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.
yellow_river
Posts: 3
Joined: Sep 23, 2023 1:55

Re: how to enter multibyte character with INPUT statement

Post by yellow_river »

Thank you
Post Reply