<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AUnicode_convert%2Fdoc</id>
	<title>Module:Unicode convert/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AUnicode_convert%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Unicode_convert/doc&amp;action=history"/>
	<updated>2026-05-12T00:52:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Unicode_convert/doc&amp;diff=147425&amp;oldid=prev</id>
		<title>imported&gt;DePiep: Category:Unicode character modules</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Unicode_convert/doc&amp;diff=147425&amp;oldid=prev"/>
		<updated>2021-05-25T12:05:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/index.php?title=Category:Unicode_character_modules&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Unicode character modules (page does not exist)&quot;&gt;Category:Unicode character modules&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Module rating|release}}&lt;br /&gt;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
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. &amp;lt;code&amp;gt;&amp;amp;#123;&amp;amp;#123;#invoke:Unicode convert&amp;amp;#124;getUTF8&amp;amp;#124;D835}}&amp;lt;/code&amp;gt; → {{#invoke:Unicode convert|getUTF16|D835}}. The reverse function &amp;lt;code&amp;gt;fromUTF8&amp;lt;/code&amp;gt; accepts multiple characters, and can have both input and output set to decimal.&lt;br /&gt;
&lt;br /&gt;
When using from another module, you may call these functions as e.g. &amp;lt;code&amp;gt;unicodeConvert.getUTF8{ args = {&amp;#039;1F345&amp;#039;} }&amp;lt;/code&amp;gt;, without a proper &amp;lt;code&amp;gt;frame&amp;lt;/code&amp;gt; object.&lt;br /&gt;
&lt;br /&gt;
To find the character code of a given symbol (in decimal), use e.g. {{ml|ustring|codepoint|\🐱}} → {{#invoke:ustring|codepoint|\🐱}}.&lt;br /&gt;
&lt;br /&gt;
{| class=wikitable&lt;br /&gt;
! Code !! Output&lt;br /&gt;
|-&lt;br /&gt;
| {{mlx|Unicode convert|getUTF8|1F345}} || {{#invoke:Unicode convert|getUTF8|1F345}}&lt;br /&gt;
|-&lt;br /&gt;
| {{mlx|Unicode convert|getUTF8|1F345|base{{=}}dec}} || {{#invoke:Unicode convert|getUTF8|1F345|base=dec}}&lt;br /&gt;
|-&lt;br /&gt;
| {{mlx|Unicode convert|fromUTF8|F0 9F 8D 85 }} || {{#invoke:Unicode convert|fromUTF8|F0 9F 8D 85 }}&lt;br /&gt;
|-&lt;br /&gt;
| {{mlx|Unicode convert|fromUTF8|240 159 141 133|base{{=}}dec|basein{{=}}dec}} || {{#invoke:Unicode convert|fromUTF8|240 159 141 133|base=dec|basein=dec}}&lt;br /&gt;
|-&lt;br /&gt;
| {{mlx|Unicode convert|getUTF16|1F345}} || {{#invoke:Unicode convert|getUTF16|1F345}}&lt;br /&gt;
|-&lt;br /&gt;
| {{mlx|Unicode convert|getUTF16|1F345|base{{=}}dec}} || {{#invoke:Unicode convert|getUTF16|1F345|base=dec}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{unicode templates}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other| |&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Unicode character modules]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;DePiep</name></author>
	</entry>
</feed>