Argotic 和 YahooMediaSyndacationExtension 问题(url 编码)
我正在使用 Argotic 聚合框架来编写 RSS 提要,并且我发现了一个奇怪的行为,这可能是一个错误。
我想通过 YahooMediaSyndicateExtension 添加一个
标签来链接某个项目的 200 像素微型图,并构建微型图,我使用了一个图像处理程序,该处理程序需要在查询字符串上指定的宽度。
所以我使用这段代码:
Uri imageHandler = new Uri("http://localhost/imghandler.ashx?i=image.jpg&w=200");
YahooMediaSyndicationExtension ymse = new YahooMediaSyndicationExtension();
YahooMediaThumbnail ymt = new YahooMediaThumbnail(imageHandler);
但是生成的 xml 具有缩略图 url 编码 (&
):
...
<media:thumbnail url="http://localhost/imghandler.ashx?i=image.jpg&w=200" />
...
并且处理程序无法检索正确的查询字符串参数 (w=200 )。
建议? 我错过了什么吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论