473,412 Members | 3,015 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

How to detect UniCode character

Hi All,

What is the way to detect Non-Ascii character in C#?

Say,User will input character sequence(May be in Non English say German) and we need to find which character is Non-Ascii.



-Gyanendar
May 14 '10 #1
4 11822
Dheeraj Joshi
1,123 Expert 1GB
You want to allow inly English characters?

Regards
Dheeraj Joshi
May 14 '10 #2
Yes Dheeraj
Need to detect any non english character.

Gyanendar
May 14 '10 #3
ThatThatGuy
449 Expert 256MB
@gyanendar
Check each character in the ASCII Range i.e up till 255..
may be something like that
May 14 '10 #4
Dheeraj Joshi
1,123 Expert 1GB
Yeah. ThatThatGuy is correct. Check the ASCII of the input characters. If you get any non English character restrict the user.

Regards
Dheeraj Joshi
May 14 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Daewon YOON | last post by:
I learned from http://www.jorendorff.com/articles/unicode/python.html that one can specify a unicode character by u'\N {name of the character}'. Is there any method that I do the reverse of this...
5
by: Michael | last post by:
I mean how to use _tprintf().
1
by: Diego L. | last post by:
hi to all i need help urgently. I´m having a problem with the unicode character 0x2a2b29. I´m working with an xml document and when i try to read it i have this error message ...
6
by: dbaldi | last post by:
(this is follow-on message to one posted yesterday) I'm trying to reproduce the capabilities in both Notepad and Excel, whereby a Unicode text file with Unicode characters can be converted to...
1
by: lkrubner | last post by:
>Alan J. Flavell Oct 7 2004, 1:44 pm show options >>On Thu, 7 Oct 2004, Shmuel (Seymour J.) Metz wrote: >> at 08:24 PM, "Alan J. Flavell" <flav...@ph.gla.ac.uk> said: >> >I think you...
0
by: Zengfa Gao | last post by:
Hi all, I try to put into some data I backuped. export PGPASSWORD=security cat /opt/myproj/bin/mysave | /usr/bin/psql -h localhost -U myuser DB_Name I got:
1
by: Ryu | last post by:
Is there a way to get the convert a unicode character such as chinese characters to byes? Everytime when I use Convert.toByte I will always get a System.OverflowException "Value was either too big...
4
by: Spencer H. Prue | last post by:
Hello, I am trying to print a unicode character that's in Japanese. In my ASP.NET app (C#) I just set a char to that unicode character and use a response.write(). The char prints, but it is just a...
12
by: JBJ | last post by:
Hi, I'am very newbie in Python. For the moment I'am trying to convert an unicode character to his uppercase unaccented character. By example with locale fr_FR: a,A,à,À should return A o,O,ô,Ô...
0
by: liveshell | last post by:
Hi all, In my application, I am reading a file and storing it in a array of character. That is ascii format...now in certain situation I get unicode character (or lets say junk character). I want...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.