Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Getting character range from code page


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Plerion   Members   -  Reputation: 368

Like
0Likes
Like

Posted 16 October 2012 - 12:02 PM

Hello everybody!

As the title says i would like to obtain the unicode blocks or character rangse a code page can represent. For example for the arabic code page (Windows arabic 1256) it would be 0x600-0x6FF (arabic), 0x750-0x7FF (extended), 0x8A0 - 0x8FF (extended-A).

Is there a method to obtain those information?

Greetings
Plerion

Sponsor:

#2 Plerion   Members   -  Reputation: 368

Like
0Likes
Like

Posted 16 October 2012 - 04:16 PM

I am using the following code which works good:
[source lang="csharp"] byte[] letters = new byte[223]; for (int i = 33; i < letters.Length; ++i) { letters[i - 33] = (byte)i; } var encoding = Encoding.GetEncoding(System.Globalization.CultureInfo.CurrentCulture.TextInfo.ANSICodePage); var str = encoding.GetChars(letters);[/source]




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS