JackieXie168 / chmsee

Automatically exported from code.google.com/p/chmsee
GNU General Public License v2.0
0 stars 0 forks source link

Problem changing encoding #157

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open file "assembler_ru.chm"
2. Change character encoding to Cyrillic (windows1251)
3. Relaunch application and reopen file

What is the expected output? What do you see instead?
See attached files

What version of the product are you using? On what operating system?
product version 2.0
OS Ubuntu 12.04

Please provide any additional information below.
See attached files

Original issue reported on code.google.com by Geor...@gmail.com on 2 Mar 2013 at 11:48

Attachments:

GoogleCodeExporter commented 8 years ago
The problem itself

Original comment by Geor...@gmail.com on 2 Mar 2013 at 11:51

Attachments:

GoogleCodeExporter commented 8 years ago
Thank you for issue this bug.
The TOC tree is missed even without changing the encoding. So this bug is 
related to parsing and reloading the .hhc file in the extracted chm bookshelf 
directory.

Original comment by jungl...@gmail.com on 3 Mar 2013 at 4:10

GoogleCodeExporter commented 8 years ago
This problem is caused by a special HTML entity Đ within assembler.hhc.

After I disable the code converting for this symbol, the TOC tree can be loaded 
correctly. But the string is displayed in the Đ form, see attached image.

BTW, after changing character encoding setting, you can use Ctrl+T to create a 
new TAB with new encoding and close the old one with Ctr+W. 

Original comment by jungl...@gmail.com on 4 Mar 2013 at 10:30

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks.

Original comment by Geor...@gmail.com on 4 Mar 2013 at 3:12