构建url以通过url获取页面

时间:2011-09-06 09:05:44

标签: google-sites

使用此代码,我在Google网站上创建了一个页面:

pageEntry = new WebPageEntry();
pageEntry.setTitle(new PlainTextConstruct(PageTitle));
..
..
client.insert(new URL(getContentFeedUrl()), pageEntry);

如果PageTitle包含“création”之类的内容,则会使用名称https://sites.google.com/.../.../cration创建页面。所以“création”改为“cration”。

是否有更改API中可用页面名称的流程?我想通过它的路径获取页面,但我唯一的关键是“création”。

1 个答案:

答案 0 :(得分:0)

也许更好的解决方案是在将字符串设置为页面标题之前从字符串中的字符中删除变音符号?例如,see the javascript function here。然后,您将使用网址/creation创建页面,这可能更合适。

相关问题