Module:Unicode convert/doc

&#x3c;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikidata) --&#x3e;

Usage
Converts Unicode character codes, always given in hexadecimal, to their UTF-8 or UTF-16 representation in upper-case hex or decimal. Can also reverse this for UTF-8. The UTF-16 form will accept and pass through unpaired surrogates e.g. &#x3c;code&#x3e;&#x26;#123;&#x26;#123;#invoke:Unicode convert&#x26;#124;getUTF8&#x26;#124;D835}}&#x3c;/code&#x3e; →. The reverse function &#x3c;code&#x3e;fromUTF8&#x3c;/code&#x3e; accepts multiple characters, and can have both input and output set to decimal.

When using from another module, you may call these functions as e.g. &#x3c;code&#x3e;unicodeConvert.getUTF8{ args = {'1F345'} }&#x3c;/code&#x3e;, without a proper &#x3c;code&#x3e;frame&#x3c;/code&#x3e; object.

To find the character code of a given symbol (in decimal), use e.g. →.