<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
		<id>https://wiki.schwatke.de/index.php?action=history&amp;feed=atom&amp;title=UTF-8_encoding_errors_of_files</id>
		<title>UTF-8 encoding errors of files - Versionsgeschichte</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.schwatke.de/index.php?action=history&amp;feed=atom&amp;title=UTF-8_encoding_errors_of_files"/>
		<link rel="alternate" type="text/html" href="https://wiki.schwatke.de/index.php?title=UTF-8_encoding_errors_of_files&amp;action=history"/>
		<updated>2026-07-04T10:28:56Z</updated>
		<subtitle>Versionsgeschichte dieser Seite in Wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>https://wiki.schwatke.de/index.php?title=UTF-8_encoding_errors_of_files&amp;diff=1696&amp;oldid=prev</id>
		<title>129.187.36.61: Die Seite wurde neu angelegt: „ # -*- coding: utf-8 -*-  import os  import sys  from chardet import detect    def get_encoding_type(file):  	with open(file, &#039;rb&#039;) as f:  		rawdata = f.read()…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.schwatke.de/index.php?title=UTF-8_encoding_errors_of_files&amp;diff=1696&amp;oldid=prev"/>
				<updated>2023-10-23T06:38:37Z</updated>
		
		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „ # -*- coding: utf-8 -*-  import os  import sys  from chardet import detect    def get_encoding_type(file):  	with open(file, &amp;#039;rb&amp;#039;) as f:  		rawdata = f.read()…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt; # -*- coding: utf-8 -*-&lt;br /&gt;
 import os&lt;br /&gt;
 import sys&lt;br /&gt;
 from chardet import detect&lt;br /&gt;
 &lt;br /&gt;
 def get_encoding_type(file):&lt;br /&gt;
 	with open(file, &amp;#039;rb&amp;#039;) as f:&lt;br /&gt;
 		rawdata = f.read()&lt;br /&gt;
 	return detect(rawdata)[&amp;#039;encoding&amp;#039;]&lt;br /&gt;
 &lt;br /&gt;
 files = sorted(os.listdir(&amp;#039;.&amp;#039;))&lt;br /&gt;
 for filename in files:&lt;br /&gt;
 	print (filename)&lt;br /&gt;
 	print (get_encoding_type(filename))&lt;br /&gt;
 &lt;br /&gt;
 	input = open(filename,&amp;#039;r&amp;#039;, encoding=get_encoding_type(filename))&lt;br /&gt;
 	data = input.read()&lt;br /&gt;
 	input.close()&lt;br /&gt;
 &lt;br /&gt;
 	output = open(filename,&amp;#039;w&amp;#039;, encoding=&amp;#039;utf-8&amp;#039;)&lt;br /&gt;
 	output.write(data)&lt;br /&gt;
 	output.close()&lt;/div&gt;</summary>
		<author><name>129.187.36.61</name></author>	</entry>

	</feed>