Qt assistant .qch显示乱码问题

一、.qhp文档里xml 编码格式

  1、UTF-8, qhelpgenerator生成qch文档会报错。

        2、ISO-8859-1, 在Qt assistant里面看起来全是乱码

  3、GB2312,在Qt assistant里面,目录正确显示,详情乱码

二、 html文档里的格式

  

<?xml version="1.0" encoding="GB2312"?>
<QtHelpProject version="1.0">
  <namespace>romtekAssistantOrange.myHelp</namespace>
    <virtualFolder>doc</virtualFolder>
    <filterSection>
      <toc>
        <section title="Orange 帮助系统" ref = "index.html">
          <section title = "1.引言" ref = "1.引言.html"></section>
          <section title = "2.软件概述" ref = "2.软件概述.html"></section>
          <section title = "3.运行环境与安装" ref = "3.运行环境与安装.html"></section>
          <section title = "4.软件工程介绍" ref = "4.软件工程介绍.html"></section>
          <section title = "加入我们" ref = "joinUs.html"></section>
      </section>
    </toc>
    <keywords>
      <keyword name = "1.引言" ref = "1.引言.html"/>
      <keyword name = "2.软件概述" ref = "2.软件概述.html"/>
      <keyword name = "3.运行环境与安装" ref = "3.运行环境与安装.html"/>
      <keyword name = "4.软件工程介绍" ref = "4.软件工程介绍.html"/>
      <keyword name = "加入我们" ref = "joinUs.html"/>
    </keywords>
    <files>
       <file>index.html</file>
       <file>1.引言.html</file>
        <file>2.软件概述.html</file>
       <file>3.运行环境与安装.html</file>
       <file>4.软件工程介绍.html</file>
      <file>joinUs.html</file>
      <file>images/*.png</file>
    </files>
  </filterSection>
</QtHelpProject>

原文地址:https://www.cnblogs.com/azbane/p/12326525.html