Show
Ignore:
Timestamp:
06/16/08 07:38:07 (5 months ago)
Author:
hsbt
Message:

delete euc encoding.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/tdiary/plugin/del_footer.rb

    r3279 r14111  
    2323require 'fileutils' 
    2424 
    25 def force_to_euc(str) 
    26   begin 
    27          str2 = Uconv.u8toeuc(str) 
    28   rescue Uconv::Error 
    29          str2 = NKF::nkf("-e", str) 
    30   end 
    31   return str2 
    32 end 
    33  
    3425def delicious_save_cache cache_file, file 
    3526  FileUtils.mkdir_p "#{@cache_path}/delicious" 
     
    4637         post = <<-EOS 
    4738<li><a href="#{post.attribute("href").to_s}"> 
    48 #{force_to_euc(post.attribute("description").to_s)} 
     39#{post.attribute("description").to_s} 
    4940</a></li> 
    5041         EOS