golang unicode转utf-8

golang unicode转utf-8

  • Unicode和utf-8的区别
  • 具体转换代码

Unicode和utf-8的区别

参考文章

具体转换代码

func handleResponse(resp *http.Response) (string, error) {
   
	respBytes, err := ioutil.ReadAll(resp.Body)
	defer resp.Body.Close()
	if err != nil {
   
		fmt.Println(

你可能感兴趣的:(golang,go,unicode)