.net - Google Drive Query issue with single quote and back slash -


we have implemented several applications interacting google drive through google drive sdk v2.

we facing problem "single quote" , "back slash"

the problem in google drive able create files , folders containing special characters, if going pass same file or folder name using api giving error, invalid query.

we know kind of scenarios recommended use escape characters or encoding pass value problem , google not understand escape character or encoding expects string query.

example: title = 'hello dev's 1\2\3' slash found answer adding \ before single quote, still figuring out .

i wondering if knows how resolve this, or if known behavior.

thanks,

i have found answer this, pretty simple, somehow there not enough documentation it, when using google drive api, in order pass special characters google, required use "back-slash" before special character.

so example going set search query this,

'title = martin's paper\article' \\ result : invalid_query error  

it should

'title = martin\'s paper\\article' \\ google accept [ok] 

i hope helps guys out there,

thanks,


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -