<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=UTF-8_and_BOM</id>
	<title>UTF-8 and BOM - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=UTF-8_and_BOM"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=UTF-8_and_BOM&amp;action=history"/>
	<updated>2026-05-06T18:46:47Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=UTF-8_and_BOM&amp;diff=5953&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=UTF-8_and_BOM&amp;diff=5953&amp;oldid=prev"/>
		<updated>2024-10-18T06:46:10Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 06:46, 18 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=UTF-8_and_BOM&amp;diff=5952&amp;oldid=prev</id>
		<title>1&gt;Tim@horizoneducationnetwork.org: /* How can I get rid of the BOM? */clean up, typos fixed: above mentioned → above-mentioned</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=UTF-8_and_BOM&amp;diff=5952&amp;oldid=prev"/>
		<updated>2021-09-22T18:39:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;How can I get rid of the BOM?: &lt;/span&gt;clean up, typos fixed: above mentioned → above-mentioned&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;; Database Activity&lt;br /&gt;
With the &amp;#039;&amp;#039;Database Activity&amp;#039;&amp;#039; there still seems to be a problem importing UTF-8 files with BOM (http://en.wikipedia.org/wiki/Byte-order_mark).&lt;br /&gt;
&lt;br /&gt;
* See this forum discussion for an [http://moodle.org/mod/forum/discuss.php?d=62251#p559428 example in Hebrew]&lt;br /&gt;
* See also this [http://tracker.moodle.org/secure/IssueNavigator.jspa?reset=true&amp;amp;&amp;amp;query=bom&amp;amp;summary=true&amp;amp;description=true&amp;amp;body=true&amp;amp;sorter/field=updated&amp;amp;sorter/order=DESC tracker issues]&lt;br /&gt;
&lt;br /&gt;
--[[User:Frank Ralf|Frank Ralf]] 10:36, 13 July 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
== What does BOM mean? ==&lt;br /&gt;
&lt;br /&gt;
* BOM stands for [http://en.wikipedia.org/wiki/Byte-order_mark &amp;quot;Byte Order Mark&amp;quot;].&lt;br /&gt;
* [http://www.unicode.org/unicode/faq/utf_bom.html#BOM Byte Order Mark (BOM) FAQ] by the Unicode Consortium.&lt;br /&gt;
* [http://www.joelonsoftware.com/articles/Unicode.html &amp;quot;The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)&amp;quot;] from Joel on Software (2003)&lt;br /&gt;
&lt;br /&gt;
== What is it good for? ==&lt;br /&gt;
It is used for multibyte characters to mark the order in which the bytes appear.&lt;br /&gt;
&lt;br /&gt;
== What&amp;#039;s the problem with the BOM? ==&lt;br /&gt;
&lt;br /&gt;
* See [http://www.w3.org/International/questions/qa-utf8-bom.en.php Display problems caused by the UTF-8 BOM]&lt;br /&gt;
* Some text editors add a BOM by default, for example Windows&amp;#039; Notepad.&lt;br /&gt;
* When exporting from OpenOffice Calc the BOM sneaks in even after the first delimiter!&lt;br /&gt;
&lt;br /&gt;
== How can I detect a BOM? ==&lt;br /&gt;
&lt;br /&gt;
You will need a text editor which is capable of showing special Unicode characters. A good Unicode text editor for Windows is [http://www.unipad.org/main/ SC UniPad].&lt;br /&gt;
&lt;br /&gt;
[[Image:Calc-export BOM.png]]&lt;br /&gt;
&lt;br /&gt;
The picture shows an exported CSV file from OpenOffice Calc where the BOM (#FEFF) sneaks in even after the first delimiter!&lt;br /&gt;
&lt;br /&gt;
=== Scanning Moodle folder for BOM files ===&lt;br /&gt;
&lt;br /&gt;
If Moodle is installed on a linux server you can try one of these command lines:&lt;br /&gt;
&lt;br /&gt;
 find . -type f -print0 | xargs -0r awk &amp;#039;/^\xEF\xBB\xBF/ {print FILENAME}{nextfile}&amp;#039;&lt;br /&gt;
 fgrep -rl `echo -ne &amp;#039;\xef\xbb\xbf&amp;#039;`&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;find &amp;amp; remove!&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
 find . -type f -exec sed &amp;#039;s/^\xEF\xBB\xBF//&amp;#039; -i.bak {} \; -exec rm {}.bak \;&lt;br /&gt;
&lt;br /&gt;
== How can I get rid of the BOM? ==&lt;br /&gt;
Any of the above-mentioned Unicode capable text editors will allow you to remove a BOM, some even automatically when opening or saving a file.&lt;br /&gt;
&lt;br /&gt;
Some other text editors will save files without BOM, e.g. [http://notepad-plus.sourceforge.net/ Notepad++].&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[UTF-8]]&lt;br /&gt;
* [[Converting files to UTF-8]]&lt;br /&gt;
* [[Unicode]]&lt;br /&gt;
* [[Import and export FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:UTF-8]]&lt;br /&gt;
&lt;br /&gt;
[[es:UTF-8 y BOM]]&lt;/div&gt;</summary>
		<author><name>1&gt;Tim@horizoneducationnetwork.org</name></author>
	</entry>
</feed>