<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://script.quakenet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=%24utfdecode</id>
	<title>$utfdecode - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://script.quakenet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=%24utfdecode"/>
	<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$utfdecode&amp;action=history"/>
	<updated>2026-06-04T05:10:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$utfdecode&amp;diff=5582&amp;oldid=prev</id>
		<title>NaNg: Created page with &quot;Returns the result of decoding the provided text from UTF-8.  $utfdecode(text, C)  The parameter C is an 8-bit (0-255) number referencing a GDI charset number for specific code p...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$utfdecode&amp;diff=5582&amp;oldid=prev"/>
		<updated>2011-02-25T17:30:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Returns the result of decoding the provided text from UTF-8.  $utfdecode(text, C)  The parameter C is an 8-bit (0-255) number referencing a GDI charset number for specific code p...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Returns the result of decoding the provided text from UTF-8.&lt;br /&gt;
 $utfdecode(text, C)&lt;br /&gt;
&lt;br /&gt;
The parameter C is an 8-bit (0-255) number referencing a GDI charset number for specific code page to unicode resolution.&lt;br /&gt;
&lt;br /&gt;
== Available charset numbers ==&lt;br /&gt;
&lt;br /&gt;
for a list of available charset numbers, see [[$utfencode#Available charset numbers|$utfencode]].&lt;br /&gt;
&lt;br /&gt;
== Actual transition ==&lt;br /&gt;
&lt;br /&gt;
Behind the scene, $utfdecode does the inverted operation of $utfencode, which is the following:&lt;br /&gt;
# Unicode char code is encoded using [[$utfencode]] to form its UTF-8 analogue.&lt;br /&gt;
# Looks up the char code in unicode&amp;#039;s charset map to be of what abstract character, e.g. for C the abstract character is LATIN CAPITAL LETTER C.&lt;br /&gt;
# The abstract character is located in the given charset map.&lt;br /&gt;
# The located char code is used to encode the char in the given charset map encoding.&lt;br /&gt;
&lt;br /&gt;
Decoding UTF-8 with code page references is more intricate and, at present, slightly flawed insofar as mIRC will attempt to decode invalid UTF-8.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
 [[$asc]]($utfdecode([[$utfencode]]([[$chr]](915)), 161))&lt;br /&gt;
This example will return 195, which is the ANSI char code of the greek capital letter Gamma. &lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[$utfencode]]&lt;br /&gt;
* [[How to display ANSI chars in UTF-8 format]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Undocumented identifiers]]&lt;/div&gt;</summary>
		<author><name>NaNg</name></author>
	</entry>
</feed>