{"blog_title":"yuukichi\u306e\u65e5\u8a18","url":"https://yuukichi.hatenablog.com/entry/2014/08/11/golang%E3%81%A7UTF-8-MAC%E2%86%92UTF-8","height":"190","type":"rich","blog_url":"https://yuukichi.hatenablog.com/","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","categories":["golang"],"published":"2014-08-11 09:36:28","width":"100%","title":"golang\u3067UTF-8-MAC\u2192UTF-8","author_url":"https://blog.hatena.ne.jp/yuukichi41/","version":"1.0","image_url":null,"author_name":"yuukichi41","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyuukichi.hatenablog.com%2Fentry%2F2014%2F08%2F11%2Fgolang%25E3%2581%25A7UTF-8-MAC%25E2%2586%2592UTF-8\" title=\"golang\u3067UTF-8-MAC\u2192UTF-8 - yuukichi\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"UTF-8-MAC\u3092UTF-8\u306b\u5909\u63db\u3057\u305f\u304f\u3066\u56db\u82e6\u516b\u82e6\u3057\u3066\u3044\u305f\u3093\u3067\u3059\u304c\u3001UTF-8-MAC\u306fUTF-8\u3092\u6b63\u898f\u5316\u3057\u305f\u3082\u306e\u3067\u3001iconv\u304c\u72ec\u81ea\u306b\u547d\u540d\u3057\u3066\u3044\u308b\u3082\u306e\u3068\u306e\u3053\u3068\u3067\u3001\u305d\u3053\u3089\u8fba\u3092\u8e0f\u307e\u3048\u3066\u8abf\u3079\u3066\u307f\u305f\u3089\u3001 Golang: Unicode \u6b63\u898f\u5316 - Sarabande.jp \u3053\u306e\u8a18\u4e8b\u306b\u6b63\u898f\u5316\u306e\u65b9\u6cd5\u304c\u8f09\u3063\u3066\u305f\u306e\u3067\u3001\u3053\u308c\u3092\u53c2\u8003\u306b import \"code.google.com/p/go.text/unicode/norm\" func DenormalizeUnicodeString(str string) string { buf := []byte(str) buf = norm.NFC.Bytes(\u2026"}