我尝试在下一个代码的帮助下从我的 FF 插件发布推文:
var hebrewDate = encodeURIComponent(this.hHCalendar.label);
var author = "@HebrewCalendar";
var postToTweeterLine = "http://www.twitter.com/home?status=" + hebrewDate + " " + author;
gBrowser.loadURI(url);
当我只使用英语时:www.twitter.com/home?status=Or%20le%20Yom%20Bet%2C%207th%20Sivan%2C%205772%2C%20Isru%20Chag @HebrewCalendar
FF 12.0 显示下一个文本:
如何解决 %20 的问题?
当我尝试发布希伯来语文本时,我看到下一个文本:%D7%90%D7%95%D7%A8%20%D7%9C%D7%99%D7%95%D7%9D%20%D7%91% 27%2C%20%D7%96%27%207%20%D7%91%D7%A1%D7%99%D7%95%D7%9F%20%20%D7%94%27%D7%AA% D7%A9%D7%A2%22%D7%91%205772%2C%20%D7%90%D7%A1%D7%A8%D7%95%20%D7%97%D7%92%20@HebrewCalendar
谢谢你,伊戈尔。