{"image_url":null,"published":"2006-06-05 12:27:53","categories":["perl"],"title":" Unicode::Normalize \u3067\u904a\u3076","blog_url":"https://dayflower.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdayflower.hatenablog.com%2Fentry%2F20060605%2F1149478073\" title=\" Unicode::Normalize \u3067\u904a\u3076 - daily dayflower\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/dayflower/","url":"https://dayflower.hatenablog.com/entry/20060605/1149478073","provider_url":"https://hatena.blog","author_name":"dayflower","type":"rich","height":"190","blog_title":"daily dayflower","version":"1.0","width":"100%","description":"Unicode \u306e\u898f\u683c\u3067\u306f\uff0c\u6587\u5b57\u306e\u5408\u5b57\uff08\u30ea\u30ac\u30c1\u30e3\u7b49\uff09\u7b49\u3092\u7d71\u4e00\u7684\u306b\u6271\u3048\u308b\u3088\u3046\u306b\uff0c\u300c\u6b63\u898f\u5316\u300d\u3068\u3044\u3046\u51e6\u7406\u304c\u4ed5\u69d8\u3068\u3057\u3066\u5b9a\u307e\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u6b63\u898f\u5316\u51e6\u7406\u306e\u3046\u3061\u300c\u4e92\u63db\u6027\u5206\u89e3\u300d\u3068\u3044\u3046\u51e6\u7406\u3092\u884c\u3046\u3068\u526f\u4f5c\u7528\u3068\u3057\u3066\u534a\u89d2\u30ab\u30ca\u3092\u5168\u89d2\u30ab\u30ca\u306b\u5909\u63db\u3067\u304d\u307e\u3059\uff08\u9006\u306b\u5168\u89d2\u30ab\u30ca\u2192\u534a\u89d2\u30ab\u30ca\u306f\u3067\u304d\u307e\u305b\u3093\uff09\u3002 #!/usr/bin/perl use strict; use utf8; use Encode; use Unicode::Normalize; my $src = '\uff8e\uff9f\uff9d\uff7c\uff9e\uff6d\uff70\uff7d'; my $dst = Unicode::Normalize::NFKC($src); print Encode::encode('utf8', \"\u2026"}