-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
阅读本地txt文件时,有可能出现乱码。 #36
Comments
恩。目前确实会有这个问题 正在修复 |
@brook19 解决了,有空的时候麻烦帮忙再试下会不会乱码 我这边暂时没问题,支持GBK与UTF-8 |
可以了。BTW, 翻书效果仿真模式怎么没有了,应该可以切换。 |
设置里面可以切换 |
恩,不错。滑动翻页效果如果可以再优化下就更好了 |
恩呐 尽量~ |
超赞。。。有没有QQ群啊,加起来交流一下:) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
txt文件内容可能是GBK、UTF-8、Unicode等不同的编码。
PageFactory中,读取文件等相关方法中默认使用的UTF-8编码。
/**
* 指针移到上一页页首
*/
private void pageUp() {
String strParagraph = "";
Vector lines = new Vector<>(); // 页面行
int paraSpace = 0;
mPageLineCount = mVisibleHeight / (mFontSize + mLineSpace);
while ((lines.size() < mPageLineCount) && (m_mbBufBeginPos > 0)) {
Vector paraLines = new Vector<>(); // 段落行
byte[] parabuffer = readParagraphBack(m_mbBufBeginPos); // 1.读取上一个段落
The text was updated successfully, but these errors were encountered: