Bug in Tasker When Doing HTTP Post with Unicde Text?

140 views
Skip to first unread message

Sharp E

unread,
Sep 12, 2013, 3:36:35 AM9/12/13
to tas...@googlegroups.com
Hi
 
 
I created a simple Task, containing 1 Action: HTTP Post.
 
In the Data field, I entered "ABC",
and on my Desktop computer I wrote a simple program to receive the HTTP Post request.
 
It all works well, with "ABC".
 
 
But If I change "ABC" to "ABCאאא" (added 3 hebrew letters),
then when I run the task, The HTTP Post request is not sent, and instead, I get this error:
 
 
The String "ABCאאא" is 6 letters, but I assume that each of the 3 hebrew letters are converted to 2 bytes,
so we get 3+6=9.
 
 
What can I do to fix this?
Or is this a bug in Tasker?
 
 
Thank you

Pent

unread,
Sep 12, 2013, 6:16:15 AM9/12/13
to tas...@googlegroups.com
I think this is a Tasker bug, I was setting the content-length based on the string
character-length instead of the byte-length.

Let me know if it's not fixed next version.

Thanks,

Pent

Sharp E

unread,
Sep 12, 2013, 6:22:36 AM9/12/13
to tas...@googlegroups.com
Hi
 
Thank you very much
I will wait for the next version.
 
 
BTW it's interesting that in Android, only the special chars take 2 bytes,
and the regular chars remain 1 byte - even tho it's a single String.
 
 
In Windows, If the string is Unicode, then all its chars are 2 bytes..

A user

unread,
Oct 12, 2013, 11:31:53 AM10/12/13
to tas...@googlegroups.com
Hello,

I would appreciate a fix for this as well, it completely breaks logging in to wifi hotspots automatically. When is the next release scheduled?

Thank you

Pent

unread,
Oct 12, 2013, 11:39:03 AM10/12/13
to tas...@googlegroups.com


I would appreciate a fix for this as well, it completely breaks logging in to wifi hotspots automatically. When is the next release scheduled?

It's not, but you can test the fix by installing the beta posted in the forum above.

Pent
Reply all
Reply to author
Forward
0 new messages