We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
277 html = TEMPLATE % open(path,"r").read() 包含中文的md文件,gb2312编码的可以直接读,但utf-8编码的会出错,多加个异常处理
277 html = TEMPLATE % open(path,"r").read()
except UnicodeDecodeError: html = TEMPLATE % open(path,"r",encoding="UTF-8").read()
287 self.send_header("Content-Length", len(html)) len(html)是没转bytes的长度,英文没问题,中文转换后长度就不够了,网页显示不全,改成len(encoded)
287 self.send_header("Content-Length", len(html))
len(html)
len(encoded)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
277 html = TEMPLATE % open(path,"r").read()
包含中文的md文件,gb2312编码的可以直接读,但utf-8编码的会出错,多加个异常处理
287 self.send_header("Content-Length", len(html))
len(html)
是没转bytes的长度,英文没问题,中文转换后长度就不够了,网页显示不全,改成len(encoded)
The text was updated successfully, but these errors were encountered: