<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Преобразование кодировки файла, упакованного в CHM]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=8299</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8299&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Преобразование кодировки файла, упакованного в CHM».]]></description>
		<lastBuildDate>Fri, 17 May 2013 14:49:06 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Преобразование кодировки файла, упакованного в CHM]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=72224#p72224</link>
			<description><![CDATA[<p>Но в &quot;charset&quot; файла значилась именно &quot;1251&quot;. Не думаю, что занятие особым расщепыванием ANSI возможностей здесь имеет смысл.</p>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Fri, 17 May 2013 14:49:06 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=72224#p72224</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Преобразование кодировки файла, упакованного в CHM]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=72223#p72223</link>
			<description><![CDATA[<p>Теперь понятно, что вы считаете единственной ANSI кодировкой CP1251, но даже википедия <a href="http://en.wikipedia.org/wiki/Windows_code_page">не согласна</a>. Мне больше нечего сказать в этой теме.</p>]]></description>
			<author><![CDATA[null@example.com (creature.ws)]]></author>
			<pubDate>Fri, 17 May 2013 14:40:58 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=72223#p72223</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Преобразование кодировки файла, упакованного в CHM]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=72222#p72222</link>
			<description><![CDATA[<div class="quotebox"><cite>creature.ws пишет:</cite><blockquote><p>В последующих уточнениях вы не упоминали ни версию используемого интерпретатора, ни указанную в файле whatis_intro_cb.htm кодировку.</p></blockquote></div><p>Я вроде уточнял, что HTML-файл ансишный, а версия последняя, само собой.</p><div class="quotebox"><cite>creature.ws пишет:</cite><blockquote><p>«Забудем» после вопросительного предложения не к месту <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p></blockquote></div><p>Но после риторического — в самый раз. Но забудем <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />.</p>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Fri, 17 May 2013 14:32:50 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=72222#p72222</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Преобразование кодировки файла, упакованного в CHM]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=72218#p72218</link>
			<description><![CDATA[<p>«Забудем» после вопросительного предложения не к месту <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />В последующих уточнениях вы не упоминали ни версию используемого интерпретатора, ни указанную в файле whatis_intro_cb.htm кодировку. Вы считаете, что предоставленной вами информации достаточно — ожидайте того, кто считает так же.</p>]]></description>
			<author><![CDATA[null@example.com (creature.ws)]]></author>
			<pubDate>Fri, 17 May 2013 13:19:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=72218#p72218</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Преобразование кодировки файла, упакованного в CHM]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=72217#p72217</link>
			<description><![CDATA[<p>А уточняющие последующие не принимаются? В любом случае, не по адресу. Забудем.</p>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Fri, 17 May 2013 13:14:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=72217#p72217</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Преобразование кодировки файла, упакованного в CHM]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=72215#p72215</link>
			<description><![CDATA[<p>В смысле у меня win xp не локализирована. И страница whatis_intro_cb.htm сохранена в кодировке 1252 и содержит лишь латиницу. И этот факт не противоречит формулировке вашего вопроса в первом сообщении.</p>]]></description>
			<author><![CDATA[null@example.com (creature.ws)]]></author>
			<pubDate>Fri, 17 May 2013 13:10:07 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=72215#p72215</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Преобразование кодировки файла, упакованного в CHM]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=72212#p72212</link>
			<description><![CDATA[<div class="quotebox"><cite>creature.ws пишет:</cite><blockquote><p>Откажусь. Код из второго сообщения у меня на wind xp работает как и предполагается. Почему у вас «не работает» — вы не говорите.</p></blockquote></div><p>В смысле кириллицу демонстрирует?<br />Если так, то дело в другом. Спасибо.</p>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Fri, 17 May 2013 13:03:59 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=72212#p72212</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Преобразование кодировки файла, упакованного в CHM]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=72210#p72210</link>
			<description><![CDATA[<p>Откажусь. Код из второго сообщения у меня на win xp работает как и предполагается. Почему у вас «не работает» — вы не говорите.<br /></p><div class="quotebox"><blockquote><p>То есть, надежда [..] всё же есть</p></blockquote></div><p>Надежда на прочих посетителей форума.</p>]]></description>
			<author><![CDATA[null@example.com (creature.ws)]]></author>
			<pubDate>Fri, 17 May 2013 12:57:58 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=72210#p72210</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Преобразование кодировки файла, упакованного в CHM]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=72209#p72209</link>
			<description><![CDATA[<p>То есть, надежда заиметь кораблик в бутылке всё же есть <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" />.<br />Встряхнуть её не откажетесь?</p>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Fri, 17 May 2013 12:48:40 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=72209#p72209</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Преобразование кодировки файла, упакованного в CHM]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=72207#p72207</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>StrPut returns the number of characters written, the required buffer size in characters if no Address was given, or 0 if an error occurred. If Length is less than the length of the source string, the function fails and returns 0. If Length is exactly the length of the source string, the string is not null-terminated; otherwise the returned count includes the null-terminator.</p></blockquote></div><p>Вы ищете строку &lt;title&gt; в chck. chck в лучшем случае содержит число.<br /></p><div class="quotebox"><blockquote><p>Где здесь ошибка закралась?</p></blockquote></div><p>Нет здесь ошибок, просто случайный набор команд обрабатывает разнообразные строки и возвращает разнообразные результаты. <span style="color: silver">Код написан с использованием паттерна «корабль в бутылке»<a href="http://bash.im/quote/392487">.</a></span></p>]]></description>
			<author><![CDATA[null@example.com (creature.ws)]]></author>
			<pubDate>Fri, 17 May 2013 12:04:16 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=72207#p72207</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Преобразование кодировки файла, упакованного в CHM]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=72206#p72206</link>
			<description><![CDATA[<p>Где здесь ошибка закралась?</p><div class="codebox"><pre><code>
#SingleInstance Force

fPath = C:\WINDOWS\Help\clipbrd.chm  ; Путь для XP

URL := &quot;mk:@MSITStore:&quot; fPath &quot;::/whatis_intro_cb.htm&quot;

req := ComObjCreate(&quot;Msxml2.XMLHTTP.6.0&quot;)
req.open(&quot;GET&quot;, URL, 0)
req.send
ResponseText := req.responseText
req := &quot;&quot;

chck := StrPutVar(ResponseText,ResponseText,&quot;CP1251&quot;)

MsgBox, % RegExReplace(chck, &quot;s).*?&lt;title&gt;(.*)?&lt;/title&gt;.*&quot;, &quot;$1&quot;)


StrPutVar(string, ByRef var, encoding)
{
    ; Ensure capacity.
    VarSetCapacity( var, StrPut(string, encoding)
        ; StrPut returns char count, but VarSetCapacity needs bytes.
        * ((encoding=&quot;utf-16&quot;||encoding=&quot;cp1200&quot;) ? 2 : 1) )
    ; Copy or convert the string.
    return StrPut(string, &amp;var, encoding)
}

</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Fri, 17 May 2013 11:43:43 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=72206#p72206</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Преобразование кодировки файла, упакованного в CHM]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=72058#p72058</link>
			<description><![CDATA[<div class="codebox"><pre><code>fPath = C:\WINDOWS\Help\clipbrd.chm  ; Путь для XP

URL := &quot;mk:@MSITStore:&quot; fPath &quot;::/whatis_intro_cb.htm&quot;

req := ComObjCreate(&quot;Msxml2.XMLHTTP.6.0&quot;)
req.open(&quot;GET&quot;, URL, 0)
req.send
ResponseText := req.responseText
req := &quot;&quot;

strget(&amp;ResponseText, &quot;CP1251&quot;)

MsgBox, % RegExReplace(ResponseText, &quot;s).*?&lt;title&gt;(.*)?&lt;/title&gt;.*&quot;, &quot;$1&quot;)</code></pre></div><p>Неа, не катит. Ведь говорил, затрудняюсь.</p>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Sun, 12 May 2013 19:20:25 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=72058#p72058</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Преобразование кодировки файла, упакованного в CHM]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=72057#p72057</link>
			<description><![CDATA[<p>Как «перекодировать» строку из cp1251 в cp1200 показано в сообщении #10, какие еще вопросы?</p>]]></description>
			<author><![CDATA[null@example.com (creature.ws)]]></author>
			<pubDate>Sun, 12 May 2013 19:06:33 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=72057#p72057</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Преобразование кодировки файла, упакованного в CHM]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=72056#p72056</link>
			<description><![CDATA[<p>Ну искал-то я знамо что: кодик, способный вывести из ANSI файла кириллический текст. Остальное — детали.<br />Но вам, я погляжу, видней.</p>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Sun, 12 May 2013 19:02:38 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=72056#p72056</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Преобразование кодировки файла, упакованного в CHM]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=72055#p72055</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>Странно что нигде готового кода нет, ни у нас, ни там.</p></blockquote></div><p>Кажется, вы ищете «то, не знаю что».</p>]]></description>
			<author><![CDATA[null@example.com (creature.ws)]]></author>
			<pubDate>Sun, 12 May 2013 18:48:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=72055#p72055</guid>
		</item>
	</channel>
</rss>
