Class 11 Chapter 2: Encoding

Introduction

Computer में किसी भी प्रकार के Data को process करने के लिए उसे एक ऐसे format में represent करना आवश्यक होता है जिसे Computer समझ सके।

Computer में Text, Numbers, Images और अन्य Data को represent करने के लिए विभिन्न Encoding Schemes का उपयोग किया जाता है।

इस chapter में हम Encoding की basic concept तथा विभिन्न Character Encoding Schemes जैसे ASCII, Unicode और UTF-8 के बारे में अध्ययन करेंगे।

Encoding क्या है?

Encoding एक ऐसी प्रक्रिया है जिसमें Data या Characters को एक निश्चित format या code में बदला जाता है, ताकि Computer उसे आसानी से store, process और transmit कर सके।

Computer मूल रूप से Data को 0 और 1 (Binary) के रूप में समझता है। इसलिए Text और अन्य Characters को Computer में store करने के लिए उन्हें उपयुक्त numerical codes में represent किया जाता है।

उदाहरण

अंग्रेजी अक्षर A को ASCII Encoding में एक निश्चित numerical code दिया गया है। Computer उस code को Binary form में store और process करता है।

इस प्रकार Encoding Computer और User के बीच Data को represent करने का एक महत्वपूर्ण माध्यम है।

Character Encoding

Character Encoding वह प्रक्रिया है जिसमें प्रत्येक character को एक विशेष numerical code दिया जाता है, ताकि Computer उसे store और process कर सके।

Computer में हम A, B, C, a, b, c, 1, 2, 3 जैसे characters का उपयोग करते हैं। इन characters को Computer के अंदर codes के रूप में represent किया जाता है।

प्रमुख Character Encoding Schemes

Computer में characters को represent करने के लिए प्रमुख Encoding Schemes हैं:

  1. ASCII (American Standard Code for Information Interchange)
  2. Unicode
  3. UTF-8 (Unicode Transformation Format – 8 bit)

इन Encoding Schemes की मदद से Computer अलग-अलग characters और languages को सही तरीके से represent कर सकता है।

ASCII Encoding

ASCII (American Standard Code for Information Interchange) एक Character Encoding Standard है, जिसका उपयोग characters को numerical codes के रूप में represent करने के लिए किया जाता है।

Standard ASCII में 7 bits का उपयोग होता है और इसमें कुल 128 characters represent किए जा सकते हैं।

इनमें English alphabets, digits, punctuation marks और कुछ special/control characters शामिल होते हैं।

उदाहरण

ASCII में:

  • A = 65
  • B = 66
  • C = 67

Computer इन numerical values को Binary form में store और process करता है।

Important Point

ASCII → 7 bits → 128 characters

ASCII मुख्य रूप से English characters के लिए उपयोगी है। अलग-अलग languages के characters को represent करने के लिए बाद में Unicode जैसी अधिक व्यापक encoding systems विकसित की गईं।

Unicode Encoding

Unicode एक universal character encoding standard है, जिसका उद्देश्य दुनिया की विभिन्न भाषाओं के characters को एक standard system में represent करना है।

ASCII मुख्य रूप से English characters के लिए उपयोगी था, जबकि Unicode में English के साथ-साथ Hindi, Bengali, Tamil, Arabic, Chinese और अन्य अनेक भाषाओं के characters को भी represent किया जा सकता है।

उदाहरण

Unicode की सहायता से निम्नलिखित characters को Computer में represent किया जा सकता है:

  • English: A, B, C
  • Hindi: अ, आ, क, ख
  • अन्य भाषाएँ: विभिन्न भाषाओं के characters

Unicode की विशेषताएँ

  • यह अनेक भाषाओं के characters को support करता है।
  • यह अलग-अलग computer systems पर text को सही तरीके से represent करने में मदद करता है।
  • Modern websites और applications में Unicode का व्यापक उपयोग होता है।

Important Point

Unicode → Multiple Languages के Characters को Support करता है।

UTF-8 Encoding

UTF-8 (Unicode Transformation Format – 8 bit) Unicode characters को encode करने का एक लोकप्रिय तरीका है।

UTF-8 में अलग-अलग characters को उनकी आवश्यकता के अनुसार 1 से 4 bytes में encode किया जा सकता है। इसलिए यह English के साथ-साथ Hindi और अन्य भाषाओं के characters को भी represent कर सकता है।

UTF-8 की विशेषताएँ

  • UTF-8 Unicode का एक encoding format है।
  • यह 1 से 4 bytes का उपयोग कर सकता है।
  • यह English और अनेक अन्य भाषाओं के characters को support करता है।
  • Web pages और Internet पर UTF-8 का व्यापक उपयोग होता है।

Important Point

UTF-8 → Unicode Encoding Format → 1 से 4 Bytes

ASCII और Unicode में अंतर

ASCIIUnicode
मुख्य रूप से English characters के लिए बनाया गया।दुनिया की अनेक भाषाओं के characters को support करता है।
Standard ASCII में 7 bits का उपयोग होता है।Unicode characters को represent करने के लिए अलग-अलग encoding formats का उपयोग करता है।
इसमें 128 characters represent किए जा सकते हैं।इसमें बहुत बड़ी संख्या में characters represent किए जा सकते हैं।
उदाहरण: A, B, C और digitsउदाहरण: A, B, C, अ, आ, क आदि

याद रखें

ASCII → मुख्य रूप से English

Unicode → अनेक भाषाओं के Characters

Encoding के उपयोग

Encoding का उपयोग Computer और Digital Technology के विभिन्न क्षेत्रों में किया जाता है।

प्रमुख उपयोग

  1. Text Storage – Text और characters को Computer में store करने के लिए।
  2. Data Transmission – Internet और अन्य communication systems में data को सही format में transmit करने के लिए।
  3. Web Pages – Websites पर अलग-अलग भाषाओं के text को सही तरीके से display करने के लिए।
  4. Software Applications – Computer programs और applications में text और symbols को represent करने के लिए।
  5. Multilingual Content – अलग-अलग भाषाओं, जैसे Hindi और English, के text को support करने के लिए।

उदाहरण

जब किसी website पर English के साथ Hindi text भी सही दिखाई देता है, तो इसके पीछे Unicode और UTF-8 जैसी encoding technologies महत्वपूर्ण भूमिका निभाती हैं।

Important Points

Encoding का उपयोग Data और Characters को Computer-readable format में represent करने के लिए किया जाता है।Computer Data को Binary form यानी 0 और 1 के रूप में process करता है।ASCII में standard रूप से 7 bits का उपयोग होता है और 128 characters represent किए जा सकते हैं।Unicode अनेक भाषाओं के characters को support करता है।UTF-8 Unicode का एक लोकप्रिय encoding format है।UTF-8 में एक character को आवश्यकता के अनुसार 1 से 4 bytes में encode किया जा सकता है।Websites और Internet पर UTF-8 का व्यापक उपयोग होता है।ASCII → मुख्य रूप से EnglishUnicode → अनेक भाषाएँUTF-8 → Unicode का Encoding Format

MCQs (Multiple Choice Questions)

1. Encoding क्या है?

A. Computer को बंद करने की प्रक्रिया
B. Data या Characters को एक निश्चित code/format में represent करने की प्रक्रिया
C. Computer की सफाई करने की प्रक्रिया
D. केवल Data delete करने की प्रक्रिया

सही उत्तर: B. Data या Characters को एक निश्चित code/format में represent करने की प्रक्रिया

2. Standard ASCII में कितने bits का उपयोग होता है?

A. 4 bits
B. 7 bits
C. 8 bits
D. 16 bits

सही उत्तर: B. 7 bits

3. Standard ASCII में कितने characters represent किए जा सकते हैं?

A. 64
B. 128
C. 256
D. 512

सही उत्तर: B. 128

4. Unicode का मुख्य उद्देश्य क्या है?

A. केवल English को represent करना
B. केवल Numbers को represent करना
C. अनेक भाषाओं के characters को represent करना
D. केवल Images को store करना

सही उत्तर: C. अनेक भाषाओं के characters को represent करना

5. UTF-8 किससे संबंधित है?

A. Operating System
B. Unicode Encoding
C. Input Device
D. Computer Memory

सही उत्तर: B. Unicode Encoding

6. UTF-8 में एक character को अधिकतम कितने bytes में encode किया जा सकता है?

A. 2 bytes
B. 3 bytes
C. 4 bytes
D. 8 bytes

सही उत्तर: C. 4 bytes

7. ASCII में A का decimal code क्या है?

A. 64
B. 65
C. 66
D. 67

सही उत्तर: B. 65

8. इनमें से कौन-सा Unicode का उदाहरण है?

A. केवल A, B, C
B. केवल 0, 1, 2
C. English और Hindi दोनों के characters
D. केवल mathematical calculations

सही उत्तर: C. English और Hindi दोनों के characters

Chapter Summary

इस chapter में हमने Encoding और Character Encoding की basic concepts का अध्ययन किया। हमने ASCII, Unicode और UTF-8 के बारे में जाना तथा इनके उपयोग और विशेषताओं को समझा।

Quick Revision

ASCII → 7 bits → 128 characters

Unicode → अनेक भाषाओं के Characters

UTF-8 → Unicode Encoding Format → 1 से 4 Bytes

Next Chapter

Class 11 – Chapter 3

Chapter 3 पढ़ने के लिए यहाँ क्लिक करें।