Szani has asked for the wisdom of the Perl Monks concerning the following question:
How to convert $buff back to windows-1250 ?my $p= XML::Parser->new( Style => 'Tree' , ProtocolEncoding => 'windows-1250' ); my $XmlDok=$p->parse( '<RAP>ó</RAP>' ); my $xso = XML::SimpleObject->new( $XmlDok ); my $buff = $xso->child('RAP')->value;
but the same conversion doesn't work under Windows !!!!!my $Map= new Unicode::Map("CP1250"); $buff= $Map->from_unicode( Unicode::Transform::unicode_to_utf16be( $ +buff ) );
Edited by planetscape - added code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::Parser & encoding
by grantm (Parson) on Nov 30, 2005 at 23:57 UTC | |
|
Re: XML::Parser & encoding
by graff (Chancellor) on Dec 01, 2005 at 00:41 UTC | |
|
Re: XML::Parser & encoding
by Tanktalus (Canon) on Nov 30, 2005 at 20:35 UTC |