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
When this program is run using Go 1.6: http://play.golang.org/p/uGmwQKxWyj, it crashes:
% go run a.go "بموجب الشروط التالية نسب المصنف — يج�... 2016/02/08 14:59:11 output is not valid UTF-8!
It sliced a rune in half because the UTF-8 decoder is not advancing its input.
The corrected loop body should say:
_, size := utf8.DecodeRuneInString(s[i:])
The text was updated successfully, but these errors were encountered:
CL https://golang.org/cl/19361 mentions this issue.
Sorry, something went wrong.
41191e1
No branches or pull requests
When this program is run using Go 1.6: http://play.golang.org/p/uGmwQKxWyj, it crashes:
It sliced a rune in half because the UTF-8 decoder is not advancing its input.
The corrected loop body should say:
The text was updated successfully, but these errors were encountered: