Adding a task with an apostrophe leads to weird encoding

When adding a task through the API in Asana, we have text that has " ’ " characters.(Apostrophe). When that task is added to Asana, that apostrophe is shown as it’s ASCII format. I see no option for encoding when sending the request, so I would like to know how to proceed with this.

This is the how the task is shown in Asana.

Please replace 00:16 - 00:19 of 'David '1 with 00:02 - 00:06 of 'David - intro stitch'

Cut 12:28 - 13:08 and 36:38 - 46:57 of 'David 1'

Intro music to overlay up to 00:41 of ‘David 1’ (“How can the powers of tech be harnessed as a force for social good?”) and at outro from 46:57 onwards, fading out.

This is what I send:

Order Comments: Please replace 00:16 - 00:19 of 'David '1 with 00:02 - 00:06 of ‘David - intro stitch’
Cut 12:28 - 13:08 and 36:38 - 46:57 of ‘David 1’
Intro music to overlay up to 00:41 of ‘David 1’ (“How can the powers of tech be harnessed as a force for social good?”) and at outro from 46:57 onwards, fading out.

Hi @Vedran_Korponajić,

I use UTF8Encoding in my API requests and I don’t have any issues sending apostrophes.

How do I set the encoding of API request? I use Asana PHP library.

Sorry, I know nothing of PHP; I’m a C# and .NET guy.

1 Like