German text problem.

17 views
Skip to first unread message

Dima

unread,
Nov 23, 2009, 5:18:15 AM11/23/09
to Fotolia API
Hello,
I try to work with German language and have some problems with special
sibols like "öäüß" (Umlaute). With getTags I see wrong simbols as
keywords. If I try to find something with that letters, I have an
error. Could you help me?
The link is hier: http://fotos24.net/fotolia/getTags.php
I have switched it in the debug mode...

Olivier Sirven

unread,
Nov 23, 2009, 5:50:17 AM11/23/09
to fotol...@googlegroups.com
Dima <kon...@fotos24.net> writes:

> Hello,
> I try to work with German language and have some problems with special
> sibols like "ᅵᅵᅵᅵ" (Umlaute). With getTags I see wrong simbols as
> keywords. If I try to find something with that letters, I have an
> error. Could you help me?
> The link is hier: http://fotos24.net/fotolia/getTags.php
> I have switched it in the debug mode...

Hi,

getTags returns its results using a htmlencoded form. So you have to
unescape the result if you want to fix you problems with special
symbols.

Regards,

Olivier

Dima

unread,
Nov 24, 2009, 12:13:14 PM11/24/09
to Fotolia API
Hi Oliver,

the problem ist not just to see the special symbols. Sure I can show
it readable.
The problem is to search something.
If I try with "menu", it works.
If I write in German "Menü", I have an error

ERROR :
faultCode : 631
faultString : Failed to parse request

Sent the following request:

<member>
<name>words</name>
<value>
<string>menü</string>
</value>
</member>

Olivier Sirven

unread,
Nov 24, 2009, 12:30:42 PM11/24/09
to fotol...@googlegroups.com
Hi,

Are you sure you're sending your XML request using UTF-8 charset?
If yes, please provide the full XML dump of your request

Olivier

Dima <kon...@fotos24.net> writes:

> Hi Oliver,
>
> the problem ist not just to see the special symbols. Sure I can show
> it readable.
> The problem is to search something.
> If I try with "menu", it works.
> If I write in German "Menᅵ", I have an error
>
> ERROR :
> faultCode : 631
> faultString : Failed to parse request
>
> Sent the following request:
>
> <member>
> <name>words</name>
> <value>
> <string>menᅵ</string>
> </value>
> </member>
>
> --
>
> You received this message because you are subscribed to the Google Groups "Fotolia API" group.
> To post to this group, send email to fotol...@googlegroups.com.
> To unsubscribe from this group, send email to fotoliaapi+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/fotoliaapi?hl=en.

Dima

unread,
Nov 28, 2009, 4:52:53 AM11/28/09
to Fotolia API
Hi,
you can see it yourself on the page http://www.fotos24.net/galerie_start.php.
It's in the debug mode.
Just to be sure, hier is the copy :)
---------------------------------------------------------------------------------
Sent the following request:

POST /Xmlrpc/rpc HTTP/1.0
Host: api.fotolia.com
Connection: close
Content-Type: text/xml
Content-Length: 1377

<?xml version="1.0" encoding="utf-8"?>
<methodCall>
<methodName>xmlrpc.getSearchResults</methodName>
<params>
<param>
<value>
<string>KsJUccCJTbelaUkslZlS2khRAWRrUbNe</string>
</value>
</param>
<param>
<value>
<struct>
<member>
<name>words</name>
<value>
<string>menü</string>
</value>
</member>
<member>
<name>language_id</name>
<value>
<int>4</int>
</value>
</member>
<member>
<name>filters</name>
<value>
<struct>
<member>
<name>collection</name>
<value>
<string>all</string>
</value>
</member>
<member>
<name>content_type:photo</name>
<value>
<string>1</string>
</value>
</member>
<member>
<name>content_type:illustration</name>
<value>
<string>1</string>
</value>
</member>
<member>
<name>license_XL:on</name>
<value>
<string>1</string>
</value>
</member>
</struct>
</value>
</member>
<member>
<name>limit</name>
<value>
<string>20</string>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodCall>
---------------------------------------------------------------------------------
Received the following response:

HTTP/1.1 200 OK
Date: Sat, 28 Nov 2009 09:50:17 GMT
Server: Apache
X-Powered-By: PHP/5.2.9
Set-Cookie: PHPSESSID=1907d1b2255124dcad2e84e423952fd9; path=/;
domain=.fotolia.com
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-
check=0
Pragma: no-cache
Content-Length: 284
Connection: close
Content-Type: text/xml

<?xml version="1.0" encoding="UTF-8"?>
<methodResponse><fault><value><struct><member><name>faultCode</
name><value><int>631</int></value></member><member><name>faultString</
name><value><string>Failed to parse request</string></value></member></
struct></value></fault></methodResponse>

Which was serialized into the following data:

Array
(
[methodResponse] => Array
(
[fault] => Array
(
[value] => Array
(
[struct] => Array
(
[member] => Array
(
[0] => Array
(
[name] =>
faultCode
[value] => Array
(
[int] =>
631
)

)

[1] => Array
(
[name] =>
faultString
[value] => Array
(
[string]
=> Failed to parse request
)

)

)

)

)

)

)

)

Dima

unread,
Dec 1, 2009, 9:53:52 AM12/1/09
to Fotolia API
Hello,
have you found anything to help me?

Olivier Sirven

unread,
Dec 1, 2009, 12:06:00 PM12/1/09
to fotol...@googlegroups.com
Dima <kon...@fotos24.net> writes:

> you can see it yourself on the page http://www.fotos24.net/galerie_start.php.
> It's in the debug mode.
Hi,

It's not because your XML header says it's utf-8 encoded that it is
true. Try to encode your query string in utf8

Olivier

Dima

unread,
Dec 2, 2009, 6:18:46 AM12/2/09
to Fotolia API
> It's not because your XML header says it's utf-8 encoded that it is
> true. Try to encode your query string in utf8

I've done it. But :(
What else can it be?

Olivier Sirven

unread,
Dec 2, 2009, 6:23:12 AM12/2/09
to fotol...@googlegroups.com
The only way I managed to reproduce your issue was by sending your
query using iso-8859-1 charset instead of utf-8.

Olivier

Dima

unread,
Dec 2, 2009, 3:11:35 PM12/2/09
to Fotolia API


> The only way I managed to reproduce your issue was by sending your
> query using iso-8859-1 charset instead of utf-8.

I don't know why, but it works just wenn i use <?xml version="1.0"
encoding="iso-8859-1"?>
by sending the request.
Thanks.
Reply all
Reply to author
Forward
0 new messages