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.
General Discussion
- Caffeine Lounge
- Corner Cubicle
- Student Campus
- Software Development
- Industry News
- Introduce Yourself
- Nightmare.In.Code
Programming Help
- C and C++
- VB.NET
- Java
- C#
- Python
- PHP
- Mobile Development
- ASP.NET
- .NET Framework
- Ruby
- Game Development
- Assembly
- Databases
- ColdFusion
- VB6
- Other Languages
- 52 Weeks Of Code
Web Development
- Web Development
- HTML & CSS
- JavaScript
- Graphic Design
- Flash & ActionScript
- Blogging
- SEO & Advertising
- Web Servers & Hosting
- Site Check
Follow & Share
Tutorials
Programming
- C++ Tutorials
- Java Tutorials
- VisualBasic Tutorials
- VB.NET Tutorials
- C# Tutorials
- PHP Tutorials
- ColdFusion Tutorials
- Database Tutorials
Web Development
Reference Sheets
Code Snippets
- C Snippets
- C++ Snippets
- Java Snippets
- Visual Basic Snippets
- C# Snippets
- VB.NET Snippets
- ASP.NET Snippets
- PHP Snippets
- Python Snippets
- Ruby Snippets
- ColdFusion Snippets
- SQL Snippets
- Assembly Snippets
- Functional Programming Snippets
- Perl Snippets
- HTML/CSS Snippets
- Javascript Snippets
- Flash/ActionScript Snippets
- ASP Snippets
- Linux, Unix, and Bash Snippets
- Other Languages Snippets
- Regex

New Topic/Question
Reply


MultiQuote
|