svnno****@sourc*****
svnno****@sourc*****
2007年 10月 25日 (木) 20:03:45 JST
Revision: 231 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=bbs2ch&view=rev&rev=231 Author: flyson Date: 2007-10-25 20:03:45 +0900 (Thu, 25 Oct 2007) Log Message: ----------- jbbs 等でキャッシュが文字化けするのを修正 Modified Paths: -------------- trunk/bbs2chreader/chrome/content/bbs2chreader/board/items.js -------------- next part -------------- Modified: trunk/bbs2chreader/chrome/content/bbs2chreader/board/items.js =================================================================== --- trunk/bbs2chreader/chrome/content/bbs2chreader/board/items.js 2007-10-21 09:19:28 UTC (rev 230) +++ trunk/bbs2chreader/chrome/content/bbs2chreader/board/items.js 2007-10-25 11:03:45 UTC (rev 231) @@ -357,7 +357,7 @@ // 新規or更新 idx ファイルがあるときは読み込む cacheUpdated = true; var indexContent = this._bbs2chService.readFile(file.path); - indexContent = this._bbs2chService.fromType(indexContent, this.type); + indexContent = this._bbs2chService.fromSJIS(indexContent, this.type); logItem.title = regTitle.test(indexContent) ? RegExp.$1 : ""; logItem.count = regLineCount.test(indexContent) ? parseInt(RegExp.$1) : 0; logItem.read = logItem.count; @@ -369,7 +369,7 @@ if(cacheUpdated){ cacheContents = cacheContents.join("\n"); - cacheContents = this._bbs2chService.toType(cacheContents, this.type); + cacheContents = this._bbs2chService.toSJIS(cacheContents, this.type); this._bbs2chService.writeFile(cacheFile.path, cacheContents, false); } return resultHash;