Skip to content
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

有bug啊 #1

Open
EadingWen opened this issue Jul 9, 2019 · 4 comments
Open

有bug啊 #1

EadingWen opened this issue Jul 9, 2019 · 4 comments

Comments

@EadingWen
Copy link

1.txt
该文本压缩再解压后文本末尾少了两个字符。

@Cosinhs
Copy link

Cosinhs commented Apr 22, 2020

文件中有中文字符,用utf-8编码保存运行结果正确。

@EadingWen
Copy link
Author

文件中有中文字符,用utf-8编码保存运行结果正确。

你看我上面发的txt,没有中文字符,压缩解压后文件末尾少了两个字符“o.”

@EadingWen
Copy link
Author

文件中有中文字符,用utf-8编码保存运行结果正确。

确实是编码问题,可能是我当时是随便在中文网站复制的。。。

@Cosinhs
Copy link

Cosinhs commented Apr 23, 2020

文件中有中文字符,用utf-8编码保存运行结果正确。

确实是编码问题,可能是我当时是随便在中文网站复制的。。。

他的代码确实有bug,‘’abbac‘’这段文本压缩后解压没东西,硬着头皮看了下代码,应该是解压的函数出错了,懒得研究了,这种东西还是自己实现一遍有意义。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants