Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Getting character range from code page

4: Adsense

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   

381
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

#2 Plerion   Members   

381
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.