GeorgeK has asked for the wisdom of the Perl Monks concerning the following question:
with output being#!/usr/bin/env perl use strict; use warnings; use Encode; use Devel::Peek; my $a='AAA'; Dump($a); $a = decode('utf8',$a); Dump($a);
Are you aware of a way to accomplish the same in 5.6.2? TIA, George> ./utf8-1.pl SV = PV(0x92a10a0) at 0x929ee10 REFCNT = 1 FLAGS = (PADBUSY,PADMY,POK,pPOK) PV = 0x92aea88 "AAA"\0 CUR = 3 LEN = 4 SV = PV(0x92a10a0) at 0x929ee10 REFCNT = 1 FLAGS = (PADBUSY,PADMY,POK,pPOK,UTF8) PV = 0x92f76c8 "AAA"\0 [UTF8 "AAA"] CUR = 3 LEN = 4
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mark a string as UTF8 in 5.6.2
by ikegami (Patriarch) on Jun 24, 2011 at 20:44 UTC | |
by Anonymous Monk on Jun 26, 2011 at 18:01 UTC | |
|
Re: Mark a string as UTF8 in 5.6.2
by Tux (Canon) on Jun 25, 2011 at 12:38 UTC | |
by Anonymous Monk on Jun 25, 2011 at 22:55 UTC | |
|
Re: Mark a string as UTF8 in 5.6.2
by Anonymous Monk on Jun 24, 2011 at 23:16 UTC | |
by GeorgeK (Initiate) on Jun 27, 2011 at 00:24 UTC |