469,645 Members | 1,941 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,645 developers. It's quick & easy.

Cyrilic (Russian) characters input

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
4 5065
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
* 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
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
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.

Similar topics

5 posts views Thread by Steven | last post: by
2 posts views Thread by Ross Noe via .NET 247 | last post: by
3 posts views Thread by Roger Withnell | last post: by
6 posts views Thread by Victor | last post: by
9 posts views Thread by Roger Withnell | last post: by
1 post views Thread by kersti | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.