Skip to content

when open gb2312 text file,there are some garble words #561

Description

@augustheart

乱码的结束点大概就是当前行的结束(或是段?记忆稍有模糊)。乱码的出现原因是乱码之前少了一个字节。分段读取文本时少了一个字节?不知道是不是coolreader带过来的bug。之前看过一点lua部分代码,不过没看出问题。
既然开发者是国人,我就直接用中文报bug了。
马上五一放假,赶着下班赶地铁,要不要更详细的记录?
//////////////////////////////////////////////////////////////////////////////////////////////////
ok,I notice the chinese change log,so I guess the developer is a Chinese,and I not good at English.
I found koreader will appear some garble words for per some page when open text in gb2312( others codepage will be the same),because the read text engine lost one byte,because gb2312 is double byte character,so the byte of lost will mess all the left sentence.I not view all the source,and don't konw how the koreader read text file.I guess it first read a block,then read the next block,and the second block lost the first byte?
I hear coolreader not well support chinese,so maybe this is a bug come from coolreader?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions