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
The error "strconv.ParseInt: parsing "你好世界": invalid syntax" is returned while trying to run the test code below.
package main import ( "fmt" "strconv" php "github.com/syyongx/php2go" ) func Bin2hex(str string) (string, error) { byteArray := []byte(str) var out string; for i:=0; i < len(byteArray); i++{ out += strconv.FormatInt(int64(byteArray[i]), 16) } return out,nil } func main() { fmt.Println(Bin2hex("你好世界")) fmt.Println(php.Bin2hex("你好世界")) }
Results as follow.
C:\Users\Toby\Desktop\golang\fsadapt>fsadapt.exe e4bda0e5a5bde4b896e7958c <nil> strconv.ParseInt: parsing "你好世界": invalid syntax
System Information: OS: Windows 7 64 bit Go version: go version go1.13.4 windows/amd64
The text was updated successfully, but these errors were encountered:
Merge pull request #26 from FileGo/25
2cbf33e
Fixed issue #25 in Bin2hex()
Your request has been merged.
Sorry, something went wrong.
No branches or pull requests
The error "strconv.ParseInt: parsing "你好世界": invalid syntax" is returned while trying to run the test code below.
Results as follow.
System Information:
OS: Windows 7 64 bit
Go version: go version go1.13.4 windows/amd64
The text was updated successfully, but these errors were encountered: