<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Codepage on Twistedminds</title><link>https://twistedminds.ru/tags/codepage/</link><description>Recent content in Codepage on Twistedminds</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 29 Aug 2011 12:43:04 +0000</lastBuildDate><atom:link href="https://twistedminds.ru/tags/codepage/index.xml" rel="self" type="application/rss+xml"/><item><title>Исправляем кодировку в PDF/CSV отчетах в GLPI 0.80.2</title><link>https://twistedminds.ru/2011/08/codepage-pdf-csv-error-in-glpi/</link><pubDate>Mon, 29 Aug 2011 12:43:04 +0000</pubDate><guid>https://twistedminds.ru/2011/08/codepage-pdf-csv-error-in-glpi/</guid><description>&lt;p&gt;Если для вас такой отчет:
&lt;img src="https://twistedminds.ru/wp-content/uploads/2011/08/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA-%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0-2011-08-29-%D0%B2-16.18.15.png" alt="GLPI PDF CSV codepage issue" title="GLPI PDF CSV codepage issue"&gt;
является несколько менее читаемым нежели такой:
&lt;img src="https://twistedminds.ru/wp-content/uploads/2011/08/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA-%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0-2011-08-29-%D0%B2-16.19.10.png" alt="GLPI PDF CSV codepage issue fix" title="GLPI PDF CSV codepage issue fix"&gt;
есть смысл заморочиться с исправлением кодировки и сейчас мы постараемся причесать GLPI, чтобы PDF/CSV отчеты стали мягкими и шелковистыми.
Для начала берем шрифты &lt;a href="http://sisyphus.ru/ru/srpm/Sisyphus/glpi/sources" title="http://sisyphus.ru/ru/srpm/Sisyphus/glpi/sources" class="external-link" target="_blank" rel="noopener"&gt;отсюда&lt;/a&gt; или &lt;a href="https://twistedminds.ru/fonts.tar.gz" title="GLPI patched fonts" &gt;отсюда&lt;/a&gt;.
Заменяем содержимое каталога
&lt;code&gt;/var/www/glpi/lib/ezpdf/fonts&lt;/code&gt; содержимом архива и патчим search.class.php
&lt;code&gt; sed -i -e ‘s/windows-1252/windows-1251/g’ search.class.php&lt;/code&gt; который лежит в &lt;code&gt;/var/www/glpi/inc/&lt;/code&gt;
Если вам нужны CSV отчеты, то надо сделать резервную копию search.class.php, и пропатчить ее. После этого FusionInventory откажется переносить данные в GLPI. Вот &lt;a href="https://twistedminds.ru/patch.patch" title="/patch.patch" &gt;патч&lt;/a&gt;, вот &lt;a href="https://twistedminds.ru/diff.txt" title="/diff.txt" &gt;diff&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Проблемы с кодировкой у программ, запущенных в гостевой Windows в Parallels</title><link>https://twistedminds.ru/2010/08/parallels-windows-guest-codepage-issues/</link><pubDate>Thu, 19 Aug 2010 12:06:28 +0000</pubDate><guid>https://twistedminds.ru/2010/08/parallels-windows-guest-codepage-issues/</guid><description>&lt;p&gt;Языки и региональные стандарты – Дополнительно – Язык программ, не поддерживающих Unicode – Русский&lt;/p&gt;</description></item></channel></rss>