Module:encodings/documentation

The module defines a set "encoders" which are able to encode the text into a given encoding. More encoders can be added to the module as necessary.

encode
Function

Takes 'text' in encoding, encodes into 'encoding' and into %-encoding, returns the resulting string.

Explanation

 * UTF-8: the wiki software and all its pages and output use UTF-8.
 * %-encoding: 1) encoded text is bound to contain invalid UTF-8 text and Scribunto does not allow modules to return invalid UTF-8 text (replaces any invalid bytes in the output with &#xFFFD; [U+FFFD REPLACEMENT CHARACTER]), 2) primary use of this function is to encode text for use in URLs (external links), for certain sites that use older encodings.

Number difference
Custom converter
 * Paste input and output hex-numbers to LibreOffice Calc and sort by input
 * Convert base-16 [hexadecimal] to base-10 [decimal] (e.g. with onlinenumbertools.com, toolslick.com, or see below custom converter)
 * Calculate difference (using references)
 * Sort by difference, color the background of repeating differences, sort by input

Examples
(Catalan IEC dictionary) required input in encoding:
 * (< abundància)
 * (< abundància)