Google Drive Rest API是否支持日文搜索文件? [英] Does google drive rest api support searching files in Japanese?
问题描述
我已阅读 https://developers.google.com/drive上的文档/v2/reference/files/list , 但是,即使我使用UTF8编码对文件名进行编码,似乎也无法对日文字符搜索文件. 有想法吗?
I have read documentation on https://developers.google.com/drive/v2/reference/files/list, but it seems that searching files against Japanese characters doesn't work properly even if I encoded file name with UTF8 encoding. Any idears?
推荐答案
是的,Google Drive API确实支持搜索日语字符的文件. 我使用 Files.list 资源运行了一个请求,并获得了成功的响应.既然如此,我不确定您收到了什么错误或请求的外观.
Yes, Google Drive API does support searching files in Japanese characters. I ran a request using the Files.list resource and got a successful response. Since, i'm not sure what error you received or how your request looks.
尝试以下操作,包括查询参数,以搜索文件的特定标题,例如:
Try the following, include the query parameter to search for the specific title of the file as such:
title ='テスト'
title = 'テスト'
以下是通过立即尝试的实际GET请求:
Here is the actual GET request via Try it now:
GET https://www.googleapis.com/drive/v2/files?q=title+%3D+'%E3%83%86%E3%82%B9%E3%83%88'
尝试一下,看看是否适合您.
Try and see if this works for you.
这篇关于Google Drive Rest API是否支持日文搜索文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!