<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>728</bug_id>
          
          <creation_ts>2002-03-19 16:59:12 +0300</creation_ts>
          <short_desc>\&apos;encoding\&apos;  field ignored by utils</short_desc>
          <delta_ts>2003-08-25 15:18:29 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>docbook-utils</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vitaly A. Ostanin">vyt</reporter>
          <assigned_to name="Mikhail Zabaluev">mhz</assigned_to>
          <cc>aris</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>691</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly A. Ostanin">vyt</who>
    <bug_when>2002-03-19 16:59:12 +0300</bug_when>
    <thetext>Из файла со следующим заголовком
&amp;lt;?xml version=\&amp;quot;1.0\&amp;quot; encoding=\&amp;quot;koi8-r\&amp;quot;?&amp;gt;
&amp;lt;!DOCTYPE chapter PUBLIC \&amp;quot;-//OASIS//DTD DocBook XML V4.1.2//EN\&amp;quot;
                  \&amp;quot;&lt;a href=&quot;http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd\&amp;quot;&amp;gt&quot;&gt;http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd\&amp;quot;&amp;gt&lt;/a&gt;;
получаются файлы без указания кодировки, проверено на docbook2html -u file.xml и docbook2rtf file.xml.

В file.html указания charset нет вообще, file.rtf показывается в word\&apos;е (97) кракозябрами, смена шрифта не помогает.

Перекодировка file.xml в cp1251 и смена encoding на cp1251 (как и убирание совсем) не помогла.

Текст в file.xml в кодировке koi8-r, конвертацию запускаю на системе в CP1251.

docbook-utils-0.6.9-alt2
openjade-1.3.1-alt1
docbook-dtds-1.0-alt2

Система - Master beta 1/Sisyphus 20020314, CP1251

---

---

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3390</commentid>
    <comment_count>1</comment_count>
    <who name="Mikhail Zabaluev">mhz</who>
    <bug_when>2002-03-20 01:39:47 +0300</bug_when>
    <thetext>Explicit specification of the character set in HTML files is:
- not belonging to the core standard;
- considered harmful.
Therefore, I think, the HTML issue is not a bug.
On RTF I\&apos;m not sure; the codepage information might probably be hacked into
\\ansicpgNNN tag (oh ugliness), but this would open another can of worms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6755</commentid>
    <comment_count>2</comment_count>
    <who name="Mikhail Zabaluev">mhz</who>
    <bug_when>2002-03-20 01:39:47 +0300</bug_when>
    <thetext>Explicit specification of the character set in HTML files is:
- not belonging to the core standard;
- considered harmful.
Therefore, I think, the HTML issue is not a bug.
On RTF I\&apos;m not sure; the codepage information might probably be hacked into
\\ansicpgNNN tag (oh ugliness), but this would open another can of worms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3391</commentid>
    <comment_count>3</comment_count>
    <who name="Vitaly A. Ostanin">vyt</who>
    <bug_when>2002-03-20 12:44:22 +0300</bug_when>
    <thetext>Так чем нужно пользоваться для определения кодировки в html? Не по content type charset= работает автоопределение кодировки? Для rtf указание языка должно быть - сделал rtf из koi8-r и из cp1251 - оба в ворде не читаются. В общем, если это не баги, поделитесь right way, pls.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6756</commentid>
    <comment_count>4</comment_count>
    <who name="Vitaly A. Ostanin">vyt</who>
    <bug_when>2002-03-20 12:44:22 +0300</bug_when>
    <thetext>Так чем нужно пользоваться для определения кодировки в html? Не по content type charset= работает автоопределение кодировки? Для rtf указание языка должно быть - сделал rtf из koi8-r и из cp1251 - оба в ворде не читаются. В общем, если это не баги, поделитесь right way, pls.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3389</commentid>
    <comment_count>5</comment_count>
    <who name="Mikhail Zabaluev">mhz</who>
    <bug_when>2002-03-20 13:37:19 +0300</bug_when>
    <thetext>Определение кодировки в HTML традиционно возложено на внешние средства,
главным образом HTTP (откуда и пришла &amp;lt;META http-equiv=\&amp;quot;...\&amp;quot; ...&amp;gt;) и MIME.
Автоопределение кодировки в файле, по-моему, не входит в сферу рассмотрения системы генерации.
Насчёт rtf присяжные всё ещё совещаются. Может быть, имеет смысл делать escapes для всех не-ASCII символов? Будем смотреть, что на самом деле производит backend rtf.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6754</commentid>
    <comment_count>6</comment_count>
    <who name="Mikhail Zabaluev">mhz</who>
    <bug_when>2002-03-20 13:37:19 +0300</bug_when>
    <thetext>Определение кодировки в HTML традиционно возложено на внешние средства,
главным образом HTTP (откуда и пришла &amp;lt;META http-equiv=\&amp;quot;...\&amp;quot; ...&amp;gt;) и MIME.
Автоопределение кодировки в файле, по-моему, не входит в сферу рассмотрения системы генерации.
Насчёт rtf присяжные всё ещё совещаются. Может быть, имеет смысл делать escapes для всех не-ASCII символов? Будем смотреть, что на самом деле производит backend rtf.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3392</commentid>
    <comment_count>7</comment_count>
    <who name="Vitaly A. Ostanin">vyt</who>
    <bug_when>2002-03-20 15:44:30 +0300</bug_when>
    <thetext>Неудачная традиция, совершенно не right way :( Как быть с html, полученными не через http, локально, например? Лучше бы это было опционально в utils - ставить кодировку или нет. Я бы, например, ставил - документацию будут читать люди, которые про \&amp;quot;not belonging\&amp;quot; не слышали (надеюсь, что будут :)). Кстати, russian apache, упомянутый в похожем обсуждении в &lt;a href=&quot;mailto:devel@altlinux.ru&quot; target=&quot;_new&quot;&gt;devel@altlinux.ru&lt;/a&gt; - тоже не лучшее решение. Насчет rtf как-то упоминалось (если не ошибаюсь, AEN\&apos;ом), что там должно быть указание языка.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6757</commentid>
    <comment_count>8</comment_count>
    <who name="Vitaly A. Ostanin">vyt</who>
    <bug_when>2002-03-20 15:44:30 +0300</bug_when>
    <thetext>Неудачная традиция, совершенно не right way :( Как быть с html, полученными не через http, локально, например? Лучше бы это было опционально в utils - ставить кодировку или нет. Я бы, например, ставил - документацию будут читать люди, которые про \&amp;quot;not belonging\&amp;quot; не слышали (надеюсь, что будут :)). Кстати, russian apache, упомянутый в похожем обсуждении в &lt;a href=&quot;mailto:devel@altlinux.ru&quot; target=&quot;_new&quot;&gt;devel@altlinux.ru&lt;/a&gt; - тоже не лучшее решение. Насчет rtf как-то упоминалось (если не ошибаюсь, AEN\&apos;ом), что там должно быть указание языка.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3393</commentid>
    <comment_count>9</comment_count>
    <who name="Mikhail Zabaluev">mhz</who>
    <bug_when>2002-03-30 10:31:08 +0300</bug_when>
    <thetext>The problem is, OpenJade in its current state does not recognize koi8-r and windows-1251 (NB the IANA-approved name). For HTML, this is not fatal, apart from the questionable META issue. The RTF case can be helped by converting the XML source file to utf-8, with appropriate document changes. Then, run jw this way:
SP_ENCODING=utf-8 jw -b rtf file.xml</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6758</commentid>
    <comment_count>10</comment_count>
    <who name="Mikhail Zabaluev">mhz</who>
    <bug_when>2002-03-30 10:31:08 +0300</bug_when>
    <thetext>The problem is, OpenJade in its current state does not recognize koi8-r and windows-1251 (NB the IANA-approved name). For HTML, this is not fatal, apart from the questionable META issue. The RTF case can be helped by converting the XML source file to utf-8, with appropriate document changes. Then, run jw this way:
SP_ENCODING=utf-8 jw -b rtf file.xml</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3394</commentid>
    <comment_count>11</comment_count>
    <who name="Vitaly A. Ostanin">vyt</who>
    <bug_when>2002-03-30 12:39:02 +0300</bug_when>
    <thetext>Ок, спасибо. Feedback все еще нужен? Тогда чем, перевесить багу на openjade?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6759</commentid>
    <comment_count>12</comment_count>
    <who name="Vitaly A. Ostanin">vyt</who>
    <bug_when>2002-03-30 12:39:02 +0300</bug_when>
    <thetext>Ок, спасибо. Feedback все еще нужен? Тогда чем, перевесить багу на openjade?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3395</commentid>
    <comment_count>13</comment_count>
    <who name="Mikhail Zabaluev">mhz</who>
    <bug_when>2003-01-30 02:59:49 +0300</bug_when>
    <thetext>Use xsltproc with either chunk stylesheets or hack stylesheet wrappers with charset specified, supplied in the docbook-style-xsl package.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6760</commentid>
    <comment_count>14</comment_count>
    <who name="Mikhail Zabaluev">mhz</who>
    <bug_when>2003-01-30 02:59:49 +0300</bug_when>
    <thetext>Use xsltproc with either chunk stylesheets or hack stylesheet wrappers with charset specified, supplied in the docbook-style-xsl package.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3396</commentid>
    <comment_count>15</comment_count>
    <who name="Vitaly A. Ostanin">vyt</who>
    <bug_when>2003-01-30 15:02:42 +0300</bug_when>
    <thetext>Как оказалось, это не баг. Для указания кодировки действительно лучше пользоваться стилями из docbook-style-xsl.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6761</commentid>
    <comment_count>16</comment_count>
    <who name="Vitaly A. Ostanin">vyt</who>
    <bug_when>2003-01-30 15:02:42 +0300</bug_when>
    <thetext>Как оказалось, это не баг. Для указания кодировки действительно лучше пользоваться стилями из docbook-style-xsl.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>