[Bbs2ch-cvs 255] [237] bbs.nicovideo. jp での文字化けを修正

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2007年 10月 28日 (日) 19:55:21 JST


Revision: 237
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=bbs2ch&view=rev&rev=237
Author:   flyson
Date:     2007-10-28 19:55:21 +0900 (Sun, 28 Oct 2007)

Log Message:
-----------
bbs.nicovideo.jp での文字化けを修正

Modified Paths:
--------------
    trunk/bbs2chreader/chrome/content/bbs2chreader/post.js


-------------- next part --------------
Modified: trunk/bbs2chreader/chrome/content/bbs2chreader/post.js
===================================================================
--- trunk/bbs2chreader/chrome/content/bbs2chreader/post.js	2007-10-26 13:40:27 UTC (rev 236)
+++ trunk/bbs2chreader/chrome/content/bbs2chreader/post.js	2007-10-28 10:55:21 UTC (rev 237)
@@ -249,8 +249,11 @@
 		var textToSubURI = Components.classes["@mozilla.org/intl/texttosuburi;1"]
 					.getService(Components.interfaces.nsITextToSubURI);
 
-		aString = entityConverter.ConvertToEntities(aString,
+			// XXX TODO 参照化しないホストをリスト化する
+		if(this.boardURI.host != "bbs.nicovideo.jp"){
+			aString = entityConverter.ConvertToEntities(aString,
 						Components.interfaces.nsIEntityConverter.html40);
+		}
 
 		var charset = "";
 		switch(this.type){


bbs2ch-cvs メーリングリストの案内
Back to archive index