{# canonical_base is the OWNING tenant's origin: all 16 Peasy domains serve the same catalogue, so a page rendered by a non-owner points its canonical at the owner instead of competing with it. Falls back to this site for static/self-owned pages. #}
🍋
Menu
General

Encoding

Encoding (डेटा प्रतिनिधित्व योजना)

एक परिभाषित योजना के अनुसार डेटा को एक रूप से दूसरे में बदलने की विधि, जैसे टेक्स्ट को बाइट के रूप में प्रस्तुत करना (कैरेक्टर एन्कोडिंग), बाइनरी डेटा को टेक्स्ट के रूप में (base64), या ऑडियो को डिजिटल सैंपल के रूप में।

तकनीकी विवरण

एन्कोडिंग प्रतिवर्ती और लॉसलेस है (एन्क्रिप्शन के विपरीत, जिसमें कुंजी की आवश्यकता होती है, या लॉसी कम्प्रेशन, जो डेटा त्यागता है)। सामान्य एन्कोडिंग योजनाओं में कैरेक्टर एन्कोडिंग (UTF-8, ASCII, ISO-8859-1), ट्रांसफ़र एन्कोडिंग (base64, परसेंट-एन्कोडिंग), नंबर एन्कोडिंग (big-endian, little-endian), और मीडिया एन्कोडिंग (ऑडियो के लिए PCM, पिक्सेल के लिए RGB) शामिल हैं। मोजिबेक (गड़बड़ टेक्स्ट) तब होता है जब एक कैरेक्टर सेट में एन्कोड किया गया डेटा दूसरे के साथ डीकोड किया जाता है, जैसे UTF-8 बाइट्स को ISO-8859-1 के रूप में पढ़ना।

उदाहरण

```javascript
// Encoding: file processing example
const file = document.getElementById('fileInput').files[0];
const reader = new FileReader();
reader.onload = (e) => {
  const data = e.target.result;
  console.log(`Loaded: ${file.name} (${file.size} bytes)`);
};
reader.readAsArrayBuffer(file);
```

संबंधित फ़ॉर्मेट

संबंधित शब्द