in reply to Re^3: unicode strings without decoding or warnings or corruption
in thread unicode strings without decoding or warnings or corruption
What's lame about that?#!/usr/bin/perl use strict; use warnings; use Encode; require Encode::Detect; my $data = "Foo \xE2\x80\x94 Bar"; my $utf8 = decode("Detect", $data); binmode STDOUT, ":encoding(UTF-8)"; print $utf8;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: unicode strings without decoding or warnings or corruption
by Anonymous Monk on May 14, 2012 at 04:39 UTC |