Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to avoid Japanese character input by handling it in a KeyPress or KeyDown event. Is there any specific code snippet available online for the Japanese Keychar. I should avoid user entering Japanese character in a rich text box, so just want to know the Keychar and code for handling it.

Pls do assist.

Thanks in advance
Posted
Comments
Kenneth Haugland 14-Aug-12 0:56am    
Thought they were defined in an ASCII table with some specific ISO number?
[no name] 14-Aug-12 0:57am    
So, you want only ASCII chars should get entered.. can you please elobrate.
CyborgForever 14-Aug-12 1:13am    
ASCII for Japanese character that should not be entered...and how to handle it in the event...Since we have to use Shift+ when we type in English n Japanese(virtual Keyboard)
[no name] 14-Aug-12 1:17am    
Are you sure Japanese charcters can be supported by ASCII?
CyborgForever 14-Aug-12 1:28am    
I'm not sure I want char for UTF-8 n JIS
supported Japanese character

1 solution

I assume that you have already manage to detect the key down event, so here is the ASCII vaules you'll have to search for:
http://msdn.microsoft.com/en-us/library/ms404377.aspx[^]
 
Share this answer
 
Comments
[no name] 14-Aug-12 1:17am    
I think Japnese characters fits in Multbyte, not in ASCII.
Kenneth Haugland 14-Aug-12 1:21am    
Seems to be in UTF8 profile, no?
Kenneth Haugland 14-Aug-12 1:23am    
http://msdn.microsoft.com/en-us/library/windows/desktop/dd317756%28v=vs.85%29.aspx
[no name] 14-Aug-12 1:29am    
I skim through link. Seems to support UTF-8
CyborgForever 14-Aug-12 2:00am    
how will this be useful in identify the Keychar of input from keyboard. Kindly help

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900