perlquestion
jdtoronto
Esteemed monks,<p>
[mod://SOAP::Lite] has bitten me yet again. I have an application that queries a server which returns data from a MySQL database. Everything is fine - as long as there are no 'oddball' characters in the data. For example, I need do nothing more than add an é ( 0xE9 according to the Windows character map ) and then the whole thing stops. The table in MySQL has been defined with a character set of UTF-8.<p>
I assume I am doing something inherently stupid, surely no reasonable module would reject standard characters sets like that?<p>
In the following example method, taken from my server, I have whittled the code down to the point where I just set the name.
<code>
sub _10533 {
# test method
my ( $class, $message ) = @_;
use XML::Simple;
my $ref = XMLin($message);
$ref->{data}->{firstname} = 'joé';
return XMLout($ref, KeepRoot => 1 );
}
</code>
If the name is 'joe' then the client gets the XML, if it is 'joé' then no data is returned.<p>
So what am I doing wrong?
<p>
[jdtoronto]
<p>
<b>updated</b> correct typo, thanks [marto]