<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AISO_8859-1</id>
	<title>Module:ISO 8859-1 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AISO_8859-1"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:ISO_8859-1&amp;action=history"/>
	<updated>2026-07-28T20:35:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.3</generator>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Module:ISO_8859-1&amp;diff=472221&amp;oldid=prev</id>
		<title>Zoran: Pywikibot 6.4.0</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:ISO_8859-1&amp;diff=472221&amp;oldid=prev"/>
		<updated>2021-07-15T22:20:21Z</updated>

		<summary type="html">&lt;p&gt;Pywikibot 6.4.0&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
-- Convert pairs of hex digits (optionally separated by&lt;br /&gt;
-- non-hex-digit characters) in a string to the corresponding bytes.&lt;br /&gt;
local function from_hex_str(hex_str)&lt;br /&gt;
	return (hex_str:gsub(&amp;quot;(%x%x)%X*&amp;quot;,&lt;br /&gt;
		function (hex)&lt;br /&gt;
			return string.char(tonumber(hex, 16))&lt;br /&gt;
		end))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._show_file_signature(str)&lt;br /&gt;
	str = from_hex_str(str):gsub(&amp;quot;.&amp;quot;,&lt;br /&gt;
		function (char)&lt;br /&gt;
			local byte = char:byte()&lt;br /&gt;
			-- Show C0 and C1 control characters and the delete character as &amp;quot;.&amp;quot;.&lt;br /&gt;
			if 0x00 &amp;lt;= byte and byte &amp;lt;= 0x1F or 0x7F &amp;lt;= byte and byte &amp;lt;= 0x9F then&lt;br /&gt;
				return &amp;quot;.&amp;quot;&lt;br /&gt;
			-- Between 0xA0 and 0xFF, the byte value is the same as the code&lt;br /&gt;
			-- point for the character that the byte represents in ISO 8859-1.&lt;br /&gt;
			elseif byte &amp;gt;= 0xA0 then&lt;br /&gt;
				return mw.ustring.char(byte)&lt;br /&gt;
			end -- else don't change char&lt;br /&gt;
		end)&lt;br /&gt;
	&lt;br /&gt;
	return str&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.show_file_signature(frame)&lt;br /&gt;
	local file_signature = frame:getParent().args[1]&lt;br /&gt;
	&lt;br /&gt;
	return frame:extensionTag(&amp;quot;pre&amp;quot;, p._show_file_signature(file_signature))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Zoran</name></author>
	</entry>
</feed>