1

How to use platformRequest to initiate a call involving special chars eg * or #

Example:

platformRequest("tel:*123#");

Or any alternative to platformRequest please.

Details:
Nokia N70
CLDC 1.0
MIDP 2.0

gnat
  • 6,213
  • 108
  • 53
  • 73
Sarfraz
  • 377,238
  • 77
  • 533
  • 578
  • This is identical to your other question (http://stackoverflow.com/questions/2084162/j2me-platformrequest-issue). And why is it tagged "windows-mobile"? – funkybro Jan 20 '10 at 09:57

1 Answers1

4

Well since platformRequest() accepts URL string as its argument, my guess is that the characters in that string argument must be URL encoded.

So, since the "*" is not a reserved character, it can stay that way. But the "#" must be encoded like "%23" because it is an "unsafe character".

And my guess is that this would work:

platformRequest("tel:*666%23");

Or you can URL encode * as well:

platformRequest("tel:%2A666%23");
Cipi
  • 11,055
  • 9
  • 47
  • 60