ashesh28 has asked for the wisdom of the Perl Monks concerning the following question:
Lets say the Value of Justification column in Sharepoint is as : "RMS Roughness (Rq) is ~3.7Å for both wafers." But, when extracted by perl , the comment is changed to following : "RMS Roughness (Rq) is ~3.7Ã for both wafers."my $element_rowlimit = name( 'rowLimit' => 10000 ); #print $soap->serializer->envelope( 'method' => 'GetListItems', $eleme +nt_listname, $element_query, $element_rowlimit ); my $som = $soap->GetListItems( $element_listname, $element_query, $ele +ment_rowlimit ); my @results = $som->dataof('//GetListItemsResult/listitems/data/row'); my $oc = Text::CSV->new({sep_char => ',', eol => $/ }) or die Text::CSV->error_diag(); open my $of, '>', 'Load_Data.csv' or die $!; binmode $of, ':utf8'; chomp @results; foreach my $data (@results) { my $item = $data->attr; chomp $item; $oc->print($of,[@$item{qw( ows_Job_x0020_ID ows_Justific +ation )}]); } close $of;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Parsing UTF-8 characters (Å is changed to Ã)
by ablanke (Monsignor) on Aug 24, 2016 at 08:16 UTC | |
Re: Parsing UTF-8 characters (Å is changed to Ã)
by ikegami (Patriarch) on Aug 24, 2016 at 18:46 UTC |