This document was generated from CDN thread Created by: Stig Karlsen on 19-11-2009 08:50:13 PM Hi,I want to store contacts in my local phonebook via the API but i am experiencing some issues. It is not possible to store any blanks/space in the name field. ie: "Jon Doe" becomes only "Jon".
I have made a workaround and replaced "\x20" with "_", but then it's not possible to search for "Doe", only John
Will there be a fix for this soon ?
Regards,
Stig
Subject: RE: Local Phonebook issues
Replied by: David Bruun-Lie on 20-11-2009 10:59:26 AM
Hi Stig,
Works for me - just remember to enclose the name with '"' e.g.:
1xCommand Phonebook Contact Add Name: "peter pan" Number:123
Regards,DavidSubject: RE: Local Phonebook issues Replied by: Stig Karlsen on 20-11-2009 08:29:47 PMHi David,Okthe example in the API shows: xCommand Phonebook Contact Add Name:John Number:12345No enclosed Name.But Thanks :-)Regards,StigSubject: RE: Local Phonebook issues Replied by: David Bruun-Lie on 24-11-2009 01:56:48 PMOk, I have changed the example to include a name that has a space, thanks! :-)In general for the API: For configurations and commands that take strings as inputs they need to be "quoted" if the strings contain spaces.Therefore these works:1xCommand Phonebook Contact Add Name:John Number:12345
2xCommand Phonebook Contact Add Name:"John Doe" Number:12345
And this does NOT work:1xCommand Phonebook Contact Add Name:John doe Number:12345
David