School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,145 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,729 people online right now. Registration is fast and FREE... Join Now!




Encoding/Decoding in .Net

 

Encoding/Decoding in .Net

sam.adams61

24 Sep, 2009 - 04:02 PM
Post #1

D.I.C Head
**

Joined: 14 Jul, 2008
Posts: 230



Thanked: 10 times
My Contributions
Hi guys, I'm working my way through a text book & at the moment reading about Encoding and Decoding. By way of example the author gives the following concerning ASCII: It stores code points 0 through 127 in 1 byte, code points 128 through 2047 in 2 bytes(ie, Latin, Greek, Cryllic, Hebrew), and code points 2048 through 65535 in 3 bytes(ie, Chinese, Japanese). Therefore, given a file containing 1000 ASCII characters, but also has 2 Greek characters and 3 Chinese characters would take up 1008 bytes of disk space.
My question is, how can this be? I cannot see the logic behind that answer. Could someone please clear the fog for me? Many thanks in advance for any helpful advice.

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 03:47PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month