0

I have a perl script using soap::lite that calls a webservice written in Net. The call works, but the problem is that I need to pass a parameter like

SOAP::Data->name('x' => 'àò??\a')->type('string')

And the resulting XML is something like

<x>\xc3\x83\xc2\xa0\xc3\x83\xc2\xb2??\\a</x>

The accented letters are replaced and also the \ becomes '\\'. I need the parameter to be exactly how is written. The encoding is utf-8.

Grey
  • 114
  • 3
  • 17

1 Answers1

2

When you have Unicode literals in your Perl source, you must use utf8; and save the file in UTF-8 encoding.

daxim
  • 39,270
  • 4
  • 65
  • 132