By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,269 Members | 1,506 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,269 IT Pros & Developers. It's quick & easy.

Cyrilic (Russian) characters input

P: n/a
Hallo all,
I need to make an textbox to accept only Cyrilic characters. I
couldn't found any solution except enumerate characters for filtering
(seems odd). Please has anyone any ideas ?

Thank you all,
Martin

May 24 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Basically, that's what you need to do. Even the numeric text boxes do that.
It captures the input, if it's numeric (or Cyrilic in your case) then it
appends it...if not, it's dropped.

<Ma*********@gmail.comwrote in message
news:11**********************@u30g2000hsc.googlegr oups.com...
Hallo all,
I need to make an textbox to accept only Cyrilic characters. I
couldn't found any solution except enumerate characters for filtering
(seems odd). Please has anyone any ideas ?

Thank you all,
Martin
May 24 '07 #2

P: n/a
* Ma*********@gmail.com wrote, On 24-5-2007 21:59:
Hallo all,
I need to make an textbox to accept only Cyrilic characters. I
couldn't found any solution except enumerate characters for filtering
(seems odd). Please has anyone any ideas ?
If there is a Unicode shortcut or unicode-character range (0x0400
through 0x04FF )of these characters you could use regular Expressions to
look this up.

^[\u0400-\u04FF]*$

Or
^\p{Cyrillic}+$

Or
^\P{Cyrillic}+$

You might want to try each of these options, my Cyrillic is a bit rusty
(none existent). You can either handle the keydown event or use a
validator to check the textbox after the user has entered his text.

Jesse
May 24 '07 #3

P: n/a
There are only 33 Cyrillic characters... 66 with capitals, not really that
hard to enumerate.

At least you are not dealing with Chinese!

<Ma*********@gmail.comwrote in message
news:11**********************@u30g2000hsc.googlegr oups.com...
Hallo all,
I need to make an textbox to accept only Cyrilic characters. I
couldn't found any solution except enumerate characters for filtering
(seems odd). Please has anyone any ideas ?

Thank you all,
Martin

May 24 '07 #4

P: n/a
Hallo all,
thank you for answers,
Finally we are using method with Unicode Range checking + additional
enumarations (space, numbers, etc.)

Thank you again,

Martin

Ashot Geodakov napsal:
There are only 33 Cyrillic characters... 66 with capitals, not really that
hard to enumerate.

At least you are not dealing with Chinese!

<Ma*********@gmail.comwrote in message
news:11**********************@u30g2000hsc.googlegr oups.com...
Hallo all,
I need to make an textbox to accept only Cyrilic characters. I
couldn't found any solution except enumerate characters for filtering
(seems odd). Please has anyone any ideas ?

Thank you all,
Martin
May 25 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.