<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBS: Как отключить BOM в UTF-8?]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5852&amp;type=atom" />
	<updated>2011-05-30T17:55:35Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5852</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Как отключить BOM в UTF-8?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48835#p48835" />
			<content type="html"><![CDATA[<p><strong>BeS Yara</strong>, я с нуля считал:)</p>]]></content>
			<author>
				<name><![CDATA[JSmаn]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24434</uri>
			</author>
			<updated>2011-05-30T17:55:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48835#p48835</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Как отключить BOM в UTF-8?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48819#p48819" />
			<content type="html"><![CDATA[<p>Не особо аккуратно, но наверное как то так.<br /></p><div class="codebox"><pre><code>
Set st = CreateObject(&quot;ADODB.Stream&quot;)
st.Type=2
st.Open
st.Charset = &quot;UTF-8&quot;
st.WriteText(&quot;текст&quot;)
&#039;st.SaveToFile &quot;utf8_with_bom.txt&quot;,2
st.Position = 0
st.Type = 1
st.Position = 3
data = st.Read
st.close
st.open
st.Write data
st.SaveToFile &quot;utf8_without_bom.txt&quot;,2</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Xameleon]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=8836</uri>
			</author>
			<updated>2011-05-30T05:40:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48819#p48819</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Как отключить BOM в UTF-8?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48818#p48818" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>JSman пишет:</cite><blockquote><p>Далее прочитайте весь файл с 3го символа.</p></blockquote></div><p>Тогда уж не с третьего, а с четвёртого <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />Согласно <a href="http://ru.wikipedia.org/wiki/BOM#.D0.9F.D0.BE.D1.80.D1.8F.D0.B4.D0.BE.D0.BA_.D0.B1.D0.B0.D0.B9.D1.82.D0.BE.D0.B2">wiki</a> в BOM для указания на UTF-8 используется три символа:<br /></p><div class="quotebox"><blockquote><p>UTF-8 <br />EF BB BF</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[BeS Yara]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25643</uri>
			</author>
			<updated>2011-05-30T05:02:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48818#p48818</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Как отключить BOM в UTF-8?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48809#p48809" />
			<content type="html"><![CDATA[<p>Сохраненный файл откройте через ADODB.Stream в кодировке ascii. Далее прочитайте весь файл с 3го символа. Сохраните данные.</p>]]></content>
			<author>
				<name><![CDATA[JSmаn]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24434</uri>
			</author>
			<updated>2011-05-29T20:36:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48809#p48809</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBS: Как отключить BOM в UTF-8?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48808#p48808" />
			<content type="html"><![CDATA[<p>Этот vbs скритп создаёт файл с кодировкой UTF-8.<br />Мне нужен файл именно без BOM, а он создаётся с ним.<br />Помогите решить проблему.</p><div class="codebox"><pre><code>Set st = CreateObject(&quot;ADODB.Stream&quot;)
st.Type=2
st.Open
st.Charset = &quot;UTF-8&quot;
st.WriteText(&quot;текст&quot;)
st.SaveToFile(&quot;1234.txt&quot;)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Zeron]]></name>
			</author>
			<updated>2011-05-29T20:09:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48808#p48808</id>
		</entry>
</feed>
