Skip to content

Instantly share code, notes, and snippets.

@wchristian
Created February 20, 2012 19:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wchristian/1870757 to your computer and use it in GitHub Desktop.
Save wchristian/1870757 to your computer and use it in GitHub Desktop.
use strictures;
use Test::More;
use SOAP::Lite;
use utf8;
my $data = "mü";
my $xml = SOAP::Serializer->envelope( freeform => $data );
my ( $cycled ) = values %{ SOAP::Deserializer->deserialize( $xml )->body };
is( length( $data ), length( $cycled ), "UTF-8 string is the same after serializing" );
done_testing;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment