in reply to Encoding problem on SOAP web server

Edit: never mind, noticed the use utf8; in the lower example.

In the code you've shown, you don't tell Perl that the source contains characters already in UTF-8. I don't know if that's the cause of your problem with the SOAP serializer's encoding, but it could be. You should always give Perl a clue and point out that your source code is (partially) UTF-8 "high" characters, when you use them in the source code, with:

use utf8;
From the docs for utf8:

The use utf8 pragma tells the Perl parser to allow UTF-8 in the program text in the current lexical scope ...

Because it is not possible to reliably tell UTF-8 from native 8 bit encodings, you need either a Byte Order Mark at the beginning of your source code, or use utf8; , to instruct perl.


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: Encoding problem on SOAP web server
by Anonymous Monk on Jan 12, 2016 at 14:45 UTC
    Yep thanks