• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
我是张洪铭我是熊博士
时光静好,与君同;细水长流,与君语
博客园    首页    新随笔    联系   管理    订阅  订阅

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>

 

posted @ 2020-02-18 15:51  我是张洪铭我是熊博士  阅读(409)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3