0

Can u please tell me how to detect ascii and non-ascii strings in python?

Editor's note: In the future, please give your thread a meaningful title.

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by woooee
0

I almost never read a thread that starts with "Please help me". It is too vague to even bother with. This was one of the results of a google for "python ascii" . You can also use the ord() function (google for it) on each character to see if the decimal value is within the ASCII range. You will also have to google for ASCII decimal ranges if you don't know what they are. Also, please add "Solved" to the topic if this answers your question, so others won't waste their time reading a thread that has already been solved.
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/163743

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.