Attempt to fix broken non english RSS subjects.
git-svn-id: svn://10.0.0.236/trunk@165874 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -309,13 +309,7 @@ FeedItem.prototype.writeToFolder = function() {
|
||||
|
||||
// Convert the title to UTF-16 before performing our HTML entity replacement
|
||||
// reg expressions.
|
||||
var title;
|
||||
|
||||
try {
|
||||
title = FeedItem.unicodeConverter.ConvertToUnicode(this.title);
|
||||
} catch (ex) {
|
||||
title = this.title;
|
||||
}
|
||||
var title = this.title + ">";
|
||||
|
||||
// the subject may contain HTML entities.
|
||||
// Convert these to their unencoded state. i.e. & becomes '&'
|
||||
@@ -326,14 +320,8 @@ FeedItem.prototype.writeToFolder = function() {
|
||||
|
||||
// Compress white space in the subject to make it look better.
|
||||
title = title.replace(/[\t\r\n]+/g, " ");
|
||||
// now convert back from utf-16
|
||||
try {
|
||||
this.title = FeedItem.unicodeConverter.ConvertFromUnicode(title);
|
||||
} catch (ex) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
this.title = mimeEncodeSubject(this.title, this.characterSet);
|
||||
this.title = mimeEncodeSubject(title, this.characterSet);
|
||||
|
||||
// If the date looks like it's in W3C-DTF format, convert it into
|
||||
// an IETF standard date. Otherwise assume it's in IETF format.
|
||||
|
||||
Reference in New Issue
Block a user