<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBS: Записать в файл в кодировке 1200]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11287&amp;type=atom" />
	<updated>2016-02-04T13:01:22Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11287</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Записать в файл в кодировке 1200]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100845#p100845" />
			<content type="html"><![CDATA[<p><strong>YMP</strong><br />Да, это FAR глюкнул. Запустил новый экземпляр - и все стало норм <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />) Еще раз спасибо за помощь!</p>]]></content>
			<author>
				<name><![CDATA[inock]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25049</uri>
			</author>
			<updated>2016-02-04T13:01:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100845#p100845</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Записать в файл в кодировке 1200]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100844#p100844" />
			<content type="html"><![CDATA[<p>Возможно, текстовый редактор запомнил первоначальную кодировку файла и пытался его в ней же открыть. У меня AkelPad так делает. Поэтому приходится делать &quot;открыть как&quot; с выбором кодировки.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2016-02-04T12:55:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100844#p100844</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Записать в файл в кодировке 1200]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100843#p100843" />
			<content type="html"><![CDATA[<p><strong>YMP</strong><br />Что-то тут не то. Все-таки получается, что test.txt и 1CEStart.cfg имеют разные кодировки...</p><p>Собственно, у меня теперь test.txt вообще не читается.</p><p>UPD: Извините. На другом компьютере все нормально отработало... Это, видимо что-то с моей машиной получается...</p>]]></content>
			<author>
				<name><![CDATA[inock]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25049</uri>
			</author>
			<updated>2016-02-04T11:59:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100843#p100843</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Записать в файл в кодировке 1200]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100842#p100842" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Dim FSO
Set FSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)
Set FileCfg = fso.OpenTextFile(&quot;test.txt&quot;, 2, -1, -1)
FileCfg.WriteLine(&quot;Проверка кодировки&quot;)
FileCfg.Close</code></pre></div>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2016-02-04T11:48:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100842#p100842</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBS: Записать в файл в кодировке 1200]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100840#p100840" />
			<content type="html"><![CDATA[<p>На сколько я понимаю, 1200 - это UTF16. Хотелось бы на выходе получить файл именно в такой кодировке. Пока получается в кодировке 1251. Код:<br /></p><div class="codebox"><pre><code>Dim FSO
Set FSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)
Set FileCfg = fso.OpenTextFile(&quot;test.txt&quot;, 2, -1)
FileCfg.WriteLine(&quot;Проверка кодировки&quot;)
FileCfg.Close
</code></pre></div><p>В голову приходит только ADODB.Stream, но в HKEY_CLASSES_ROOT\MIME\Database\Charset я ничего похожего на UTF-16 не нашел... Как быть?</p><p>Спасибо</p>]]></content>
			<author>
				<name><![CDATA[inock]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25049</uri>
			</author>
			<updated>2016-02-04T10:53:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100840#p100840</id>
		</entry>
</feed>
