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
if I do enc := ma.NewEncoder("gb18030") first and then print with enc.ConvertString(file1.Name) I would get Chinese garbled.
But if I just do ma.NewDecoder("gb18030").ConvertString(file1.Name) it works
The text was updated successfully, but these errors were encountered:
mybe your zip filename is encoded by gb18030,and your Terminal is utf-8 encoding
Sorry, something went wrong.
if I do enc := ma.NewEncoder("gb18030") first and then print with enc.ConvertString(file1.Name) I would get Chinese garbled. But if I just do ma.NewDecoder("gb18030").ConvertString(file1.Name) it works
既然你要 Decoder , 那么为什么 用 Encoder 来做对比呢????
上面 decer:=ma.NewDecoder("gb18030") 即可, 下面就可以直接使用.
decer:=ma.NewDecoder("gb18030")
低级错误.
No branches or pull requests
if I do enc := ma.NewEncoder("gb18030") first and then print with enc.ConvertString(file1.Name)
I would get Chinese garbled.
But if I just do ma.NewDecoder("gb18030").ConvertString(file1.Name) it works
The text was updated successfully, but these errors were encountered: