getSearchResult polish chars

20 views
Skip to first unread message

1eden

unread,
Jan 5, 2012, 8:26:49 PM1/5/12
to Fotolia API
I use XMLRPC request:
$output_options = array('encoding' => 'UTF-8');
$data = xmlrpc_encode_request("xmlrpc.getSearchResults",
array('MyAPI',
array(
'words' => $words,
'language_id' => 11,
'offset' => $offset,
'filters' => array(
'content_type:photo' => 1,
'content_type:illustration' => 1
)
)
),
$output_options);

But when $words includes polish chars like 'ń' (ex. 'koń' which mean
'horse' in english) or 'ł' or any other polish special char
in response i have nothing.
I tried to use utf8_decode/encode with no effect.

Do you know where the problem is?

Robert Davies

unread,
Jan 16, 2012, 2:30:44 AM1/16/12
to Fotolia API
Make sure your php code file is saved as encoded with UTF-8 (without
BOM)... not certain this is the problem, but have run into it before
and this was the fix. You may also need to set UTF-8 as your default
encoding in your php.ini
Reply all
Reply to author
Forward
0 new messages