- Timestamp:
- 08/30/09 18:01:18 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
platform/tdiary/util/estraier-search/estraier-search.rb
r31683 r35131 1 1 #!/usr/bin/env ruby 2 # -*- coding: utf-8; -*- 2 3 # estraier-search.rb $Revision: 1.1.2.12 $ 3 4 # … … 5 6 # You can redistribute it and/or modify it under GPL2. 6 7 # 7 $KCODE= 'u'8 8 BEGIN { $stdout.binmode } 9 begin 10 Encoding::default_external = 'UTF-8' 11 rescue NameError 12 $KCODE = 'n' 13 end 9 14 10 15 require "estraierpure" … … 117 122 end 118 123 query = "[SIMILAR]" 119 item.keywords.split(/\t/).e num_slice(2).collect do |k, s|124 item.keywords.split(/\t/).each_slice(2).collect do |k, s| 120 125 query << " WITH #{s} #{k}" 121 126 end … … 242 247 body = conf.to_mobile( tdiary.eval_rhtml( 'i.' ) ) 243 248 head['charset'] = conf.mobile_encoding 244 head['Content-Length'] = body. size.to_s249 head['Content-Length'] = body.bytesize.to_s 245 250 else 246 251 if @cgi['type'] == 'rss' … … 251 256 end 252 257 head['charset'] = conf.encoding 253 head['Content-Length'] = body. size.to_s258 head['Content-Length'] = body.bytesize.to_s 254 259 head['Pragma'] = 'no-cache' 255 260 head['Cache-Control'] = 'no-cache'
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)