Module:Unicode convert/doc
MyWikiBiz, Author Your Legacy — Wednesday December 25, 2024
Jump to navigationJump to searchThis is the documentation page for Module:Unicode convert
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. {{#invoke:Unicode convert|getUTF8|D835}}
→ D835. The reverse function fromUTF8
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. unicodeConvert.getUTF8{ args = {'1F345'} }
, without a proper frame
object.
To find the character code of a given symbol (in decimal), use e.g. \🐱 → 128049.
Code | Output |
---|---|
Template:Mlx | F0 9F 8D 85 |
Template:Mlx | 240 159 141 133 |
Template:Mlx | 1F345 |
Template:Mlx | 127813 |
Template:Mlx | D83C DF45 |
Template:Mlx | 55356 57157 |
See also