Hello,
I'm currently having some trouble detecting if a character is a specific Unicode.
My assignment is to code a Character Reader in which it reads an input file that contains a string and I'm supposed to print how many of the Unicode characters in the file are ASCII characters, Special characters, Characters that can be encoded in ISO 8859-1, Greek letters (Α-Ω, α-ω), and Characters that are not in the basic multilingual plane
For example:
String: The circumference of a circle is 2×π×r². ℍ is the set of quaternions and ? is the set of octonions.
Occurrences:
ASCII: 94
Special: 2
ISO 8859-1: 97
Greek: 1
notInBmp: 1
My problem is how do I detect a certain unicode occurrence between ASCII, special, greek letters, etc etc.
Would love some help on this.
Thanks
I'm currently having some trouble detecting if a character is a specific Unicode.
My assignment is to code a Character Reader in which it reads an input file that contains a string and I'm supposed to print how many of the Unicode characters in the file are ASCII characters, Special characters, Characters that can be encoded in ISO 8859-1, Greek letters (Α-Ω, α-ω), and Characters that are not in the basic multilingual plane
For example:
String: The circumference of a circle is 2×π×r². ℍ is the set of quaternions and ? is the set of octonions.
Occurrences:
ASCII: 94
Special: 2
ISO 8859-1: 97
Greek: 1
notInBmp: 1
My problem is how do I detect a certain unicode occurrence between ASCII, special, greek letters, etc etc.
Would love some help on this.
Thanks


![[Image: DTc14yu.png]](https://i.imgur.com/DTc14yu.png)
