<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Сохранить unicode символы в ANSI версии AHK]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16986&amp;type=atom" />
	<updated>2022-02-19T17:34:45Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16986</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранить unicode символы в ANSI версии AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152348#p152348" />
			<content type="html"><![CDATA[<p>Решил пойти все же путем запуска скрипта в unicode версии.</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2022-02-19T17:34:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152348#p152348</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранить unicode символы в ANSI версии AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152347#p152347" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Наверно никак</p></blockquote></div><p>Не, ну, конечно, если сильно заморочиться, можно что-то придумать, вопрос, какими усилиями. Например, отправить такую строку в виде hex в HTMLFILE объект, там преобразовать в строку, сделать необходимые манипуляции, и получить обратно в виде hex.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-02-19T17:18:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152347#p152347</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранить unicode символы в ANSI версии AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152343#p152343" />
			<content type="html"><![CDATA[<p>Наверно никак. С текстом в кодировке UTF-8 в ANSI-версии AHK можно манипулировать только в бинарном виде.<br />Собственно, проблема даже не в UTF-8, а в том, что некоторые символы в этой кодировке имеют двухбайтный размер, чего ANSI-версия не поддерживает.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-02-19T16:13:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152343#p152343</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранить unicode символы в ANSI версии AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152342#p152342" />
			<content type="html"><![CDATA[<p>Если я получаю JSON строку и мне нужно сделать манипуляции с этими данными и потом сохранить, как не потерять данные в таком случае?</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2022-02-19T15:53:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152342#p152342</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранить unicode символы в ANSI версии AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152341#p152341" />
			<content type="html"><![CDATA[<p>Так ANSI версия не поддерживает строки в UTF-8 в виде текста. При получении с сайта не сохраняйте, как текст, а сохраняйте, как бинарные данные. Их же и сохраняйте в файл с помощью RawWrite(), только префикс UTF-8 не забудьте вставить.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-02-19T15:32:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152341#p152341</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранить unicode символы в ANSI версии AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152340#p152340" />
			<content type="html"><![CDATA[<p>Допустим данный код:<br /></p><div class="codebox"><pre><code>FileAppend, % &quot;Ø230 × 25,4мм&quot;, % &quot;test.xml&quot;, UTF-8</code></pre></div><p>Сохраняет как:<br /></p><div class="codebox"><pre><code>?230 ? 25,4мм</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2022-02-19T15:25:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152340#p152340</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранить unicode символы в ANSI версии AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152339#p152339" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Phoenixxx_Czar пишет:</cite><blockquote><p>И что же делать, если не помогает?</p></blockquote></div><p>Не знаю, я же ваш код не вижу.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-02-19T15:19:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152339#p152339</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранить unicode символы в ANSI версии AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152338#p152338" />
			<content type="html"><![CDATA[<p>Точнее, именно UTF-8, поскольку данные с сайта вероятнее всего в этой кодировке.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-02-19T15:18:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152338#p152338</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранить unicode символы в ANSI версии AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152337#p152337" />
			<content type="html"><![CDATA[<p>И что же делать, если не помогает?</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2022-02-19T15:18:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152337#p152337</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранить unicode символы в ANSI версии AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152336#p152336" />
			<content type="html"><![CDATA[<p>Помогает.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-02-19T15:13:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152336#p152336</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранить unicode символы в ANSI версии AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152335#p152335" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, не помогает.</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2022-02-19T15:13:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152335#p152335</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранить unicode символы в ANSI версии AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152334#p152334" />
			<content type="html"><![CDATA[<p>Да.. Но в какой? Я перепробовал разные функции и не одна из них не сохранило данные символы, а все русские вообще превратились в непонятные.</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2022-02-19T15:11:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152334#p152334</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранить unicode символы в ANSI версии AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152333#p152333" />
			<content type="html"><![CDATA[<p>При сохранении используйте UTF-8 или UTF-16.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-02-19T15:10:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152333#p152333</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранить unicode символы в ANSI версии AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152332#p152332" />
			<content type="html"><![CDATA[<p>Конвертировать в другой кодировке и хранить так?</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2022-02-19T15:09:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152332#p152332</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Сохранить unicode символы в ANSI версии AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152331#p152331" />
			<content type="html"><![CDATA[<p>У меня есть строка: &quot;Ø230 × 25,4мм&quot;, ее я получаю с сайта, при сохранении в файл вместо &quot;Ø&quot; и &quot;×&quot; стоят вопросики, как можно не потерять данные символы?</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2022-02-19T15:07:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152331#p152331</id>
		</entry>
</feed>
