Task title; note message with German Umlaut

18 views
Skip to first unread message

Sebastian

unread,
Jun 3, 2011, 7:00:27 PM6/3/11
to producteev-api-discuss
Hello,

how can i set a string with german umlaut? I cant even encode it like
ü for ü. Then we are in trouble with the &-char

regards
Sebastian

Thomas Bonnin

unread,
Jun 8, 2011, 10:20:49 AM6/8/11
to Sebastian, producteev-api-discuss
Hi Sebastian,

Sorry for the late reply.
Parameter strings should be URL encoded and not html encoded. (ex: ü => %C3%BC)

Thomas Bonnin


On Fri, Jun 3, 2011 at 7:00 PM, Sebastian <sct...@gmail.com> wrote:
&uuml;

Sebastian

unread,
Jun 8, 2011, 10:28:57 AM6/8/11
to producteev-api-discuss
Thanks for your replay.

I have testet its with url encoded parameter.

My request url looks like

https://api.producteev.com/tasks/create.xml?title=%C3%BC&id_dashboard=35621&token=mytoken&api_key=mykey&api_sig=mysig

I always get 403. Without Umlauts everythings works fine.

%C3%BC = lower ü

Thomas Bonnin

unread,
Jun 8, 2011, 11:06:22 AM6/8/11
to Sebastian, producteev-api-discuss
It looks like your issue come from the api_sig. You should generate the signature first and then url encode your request url before to send it.

Thomas

Sebastian

unread,
Jun 8, 2011, 12:14:44 PM6/8/11
to producteev-api-discuss
I have check this.

Every time i get 403.

I now generating the signature with my umlauts in the rqeuest string.
Bevor i send it, i urlencode my paramterpairs. Still 403


Example:

token=efgh
Apisecret = ijkl
api_key=abcd

Original query:
https://api.producteev.com/tasks/create.xml?title=ä&id_dashboard=35621&token=efgh&api_key=abcd

Parameter for the md5 function =
api_keyabcdid_dashboard35621titleätokenefghijkl

Calculated md5 signature = e85a31a3cdbad1cb46313ac394b2558f

query is now
https://api.producteev.com/tasks/create.xml?title=ä&id_dashboard=35621&token=efgh&api_key=abcd&api_sig=e85a31a3cdbad1cb46313ac394b2558f

and at least URL encode
https://api.producteev.com/tasks/create.xml?title=%C3%A4&id_dashboard=35621&token=efgh&api_key=abcd&api_sig=e85a31a3cdbad1cb46313ac394b2558f



Still 403


Sebastian



On 8 Jun., 17:06, Thomas Bonnin <thomas.bon...@gmail.com> wrote:
> It looks like your issue come from the api_sig. You should generate the
> signature first and then url encode your request url before to send it.
>
> Thomaswww.producteev.com
>
>
>
>
>
>
>
> On Wed, Jun 8, 2011 at 10:28 AM, Sebastian <sct...@gmail.com> wrote:
> > Thanks for your replay.
>
> > I have testet its with url encoded parameter.
>
> > My request url looks like
>
> >https://api.producteev.com/tasks/create.xml?title=%C3%BC&id_dashboard...

Thomas Bonnin

unread,
Jun 8, 2011, 12:31:28 PM6/8/11
to Sebastian, producteev-api-discuss
If you parameter string before md5 encoding is 'api_keyabcdid_dashboard35621titleätokenefghijkl' the resulting signature should be 'aecb56328dcdfe01f5697f5b60c062cf' and not 'e85a31a3cdbad1cb46313ac394b2558f'.
Can you copy/paste your signature generation code? It might help us to understand you issue.

Thomas

Sebastian

unread,
Jun 8, 2011, 12:42:55 PM6/8/11
to producteev-api-discuss
Oh thanks for your replay. You are right. The MD5 is wrong.

I passing my md5 generating code with the wrong encoding. Its my
fault. Now with UTF-8 encoding everything its okay.

Shame on me ;)

Thank you for your fast reply.

Sebastian

Thomas Bonnin

unread,
Jun 8, 2011, 12:45:25 PM6/8/11
to Sebastian, producteev-api-discuss
Glad you finally made it works.

Thomas
Reply all
Reply to author
Forward
0 new messages