タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

selfとunicodeに関するnihenのブックマーク (1)

  • へぼへぼCTO日記 - latin-1 is not utf-8

    use utf8 環境下で => オペレータの左辺が UTF8 flag on になってしまう - daily dayflower ふむふむ。これは興味深い現象ですね。 まず初めにはっきりさせておくべきなのは、 latin-1の\x{a4} == U+00a4 == utf-8の\x{c2}\x{a4} であるということですね。 use URI; my $uri = URI->new('http://example.com/'); use utf8; $uri->query_form( bytes => "\x{a4}" ); print $uri, "\n"; #=> http://example.com/?bytes=%C2%A4 で、それを踏まえると上記の結果の何が問題なのか分からないですよね。utf-8エンコーディングの正しい結果のような気がします。 結果をlatin-1で出

  • 1