<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[ExternalList, Powershell и 1C (кодировка)]]></title><description><![CDATA[<p dir="auto">Здравствуйте, Коллеги!</p>
<p dir="auto">Разработал скрипт для мониторинга серверов 1С через COM на Powershell.<br />
Столкнулся со следующей проблемой:</p>
<ol>
<li>На сервере Windows Server 2016 работает все отлично;</li>
<li>На сервере Windows 2012 R2 проблемы с кодировкой;</li>
</ol>
<p dir="auto">Для Instance Discovery сделал функцию, которая выдает список кластеров 1С. На 2012R2 получаю кракозябры при этом на 2016 проблем нет.<br />
В самом скрипте есть следующая строка определяющаю кодировку вывода:</p>
<pre><code>[Console]::OutputEncoding = [System.Text.Encoding]::GetEncoding("windows-1251")
</code></pre>
<p dir="auto">Пробовал менять кодировки, пробовал конвертировать сам текст в разные кодировки и разные комбинации с кодировкой вывода - разультат отрицательный.</p>
<p dir="auto">Куда дальше копать не знаю. Может у кого-то есть идеи?</p>
]]></description><link>https://forum.netxms.org/topic/6586/externallist-powershell-и-1c-кодировка</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:12:19 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6586.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 29 Jun 2020 09:12:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ExternalList, Powershell и 1C (кодировка) on Fri, 21 Aug 2020 12:23:14 GMT]]></title><description><![CDATA[<p dir="auto">попробуйте так<br />
[Text.Encoding]::UTF8</p>
<p dir="auto">у меня работает , где надо указываю переменную<br />
$En = [Text.Encoding]::UTF8</p>
]]></description><link>https://forum.netxms.org/post/28453</link><guid isPermaLink="true">https://forum.netxms.org/post/28453</guid><dc:creator><![CDATA[TOLeg]]></dc:creator><pubDate>Fri, 21 Aug 2020 12:23:14 GMT</pubDate></item><item><title><![CDATA[Reply to ExternalList, Powershell и 1C (кодировка) on Tue, 11 Aug 2020 10:17:36 GMT]]></title><description><![CDATA[<p dir="auto">Спасибо! Попробую - отпишусь!</p>
]]></description><link>https://forum.netxms.org/post/28409</link><guid isPermaLink="true">https://forum.netxms.org/post/28409</guid><dc:creator><![CDATA[skoropadskiy]]></dc:creator><pubDate>Tue, 11 Aug 2020 10:17:36 GMT</pubDate></item><item><title><![CDATA[Reply to ExternalList, Powershell и 1C (кодировка) on Tue, 11 Aug 2020 09:13:06 GMT]]></title><description><![CDATA[<p dir="auto">Попробуйте обновить агент до версии 3.4.310 и поменять кодировку скрипта на UTF-8.</p>
]]></description><link>https://forum.netxms.org/post/28405</link><guid isPermaLink="true">https://forum.netxms.org/post/28405</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 11 Aug 2020 09:13:06 GMT</pubDate></item><item><title><![CDATA[Reply to ExternalList, Powershell и 1C (кодировка) on Fri, 03 Jul 2020 14:17:32 GMT]]></title><description><![CDATA[<p dir="auto">На какой именно?</p>
]]></description><link>https://forum.netxms.org/post/28182</link><guid isPermaLink="true">https://forum.netxms.org/post/28182</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 03 Jul 2020 14:17:32 GMT</pubDate></item><item><title><![CDATA[Reply to ExternalList, Powershell и 1C (кодировка) on Fri, 03 Jul 2020 14:06:31 GMT]]></title><description><![CDATA[<p dir="auto">Правильный, только надо шрифт изменить.</p>
]]></description><link>https://forum.netxms.org/post/28181</link><guid isPermaLink="true">https://forum.netxms.org/post/28181</guid><dc:creator><![CDATA[skoropadskiy]]></dc:creator><pubDate>Fri, 03 Jul 2020 14:06:31 GMT</pubDate></item><item><title><![CDATA[Reply to ExternalList, Powershell и 1C (кодировка) on Fri, 03 Jul 2020 09:02:18 GMT]]></title><description><![CDATA[<p dir="auto">А если вы запускаете этот скрипт просто из консоли на 2012 R2, то вывод правильный, без кракозябр?</p>
]]></description><link>https://forum.netxms.org/post/28176</link><guid isPermaLink="true">https://forum.netxms.org/post/28176</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 03 Jul 2020 09:02:18 GMT</pubDate></item><item><title><![CDATA[Reply to ExternalList, Powershell и 1C (кодировка) on Mon, 29 Jun 2020 13:42:55 GMT]]></title><description><![CDATA[<p dir="auto">Русский (см. вложение)</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000005203-work.png" alt="work.png" class="img-markdown  img-fluid" width="439" height="176" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000005204-notwork.png" alt="notwork.png" class="img-markdown  img-fluid" width="441" height="179" /></p>
]]></description><link>https://forum.netxms.org/post/28138</link><guid isPermaLink="true">https://forum.netxms.org/post/28138</guid><dc:creator><![CDATA[skoropadskiy]]></dc:creator><pubDate>Mon, 29 Jun 2020 13:42:55 GMT</pubDate></item><item><title><![CDATA[Reply to ExternalList, Powershell и 1C (кодировка) on Mon, 29 Jun 2020 12:59:25 GMT]]></title><description><![CDATA[<p dir="auto">А какая стоит системная кодировка на этой машине (code page for non-UNICODE programs вроде называлось)?</p>
]]></description><link>https://forum.netxms.org/post/28137</link><guid isPermaLink="true">https://forum.netxms.org/post/28137</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 29 Jun 2020 12:59:25 GMT</pubDate></item></channel></rss>