Blob Blame History Raw
--- alexandria-0.6.8/lib/alexandria/export_library.rb.export	2009-03-26 08:09:32.000000000 +0900
+++ alexandria-0.6.8/lib/alexandria/export_library.rb	2012-05-06 01:22:03.000000000 +0900
@@ -420,7 +420,7 @@
           xhtml << <<EOS
   <img class="book_cover"
        src="#{File.join("pixmaps", final_cover(book))}"
-       alt="Cover file for '#{xhtml_escape(book.title)}'"
+       alt="Cover file for '#{xhtml_escape(book.title).force_encoding("UTF-8")}'"
 EOS
           if $IMAGE_SIZE_LOADED
             image_s = ImageSize.new(IO.read(cover(book)))
@@ -439,7 +439,7 @@
 
         unless book.title == nil
           xhtml << <<EOS
-<p class="book_title">#{xhtml_escape(book.title)}</p>
+<p class="book_title">#{xhtml_escape(book.title).force_encoding("UTF-8")}</p>
 EOS
         end
 
@@ -447,7 +447,7 @@
           xhtml << "<ul class=\"book_authors\">"
           book.authors.each do |author|
             xhtml << <<EOS
-<li class="book_author">#{xhtml_escape(author)}</li>
+<li class="book_author">#{xhtml_escape(author).force_encoding("UTF-8")}</li>
 EOS
           end
           xhtml << "</ul>"
@@ -455,13 +455,13 @@
 
         unless book.edition == nil
           xhtml << <<EOS
-<p class="book_binding">#{xhtml_escape(book.edition)}</p>
+<p class="book_binding">#{xhtml_escape(book.edition).force_encoding("UTF-8")}</p>
 EOS
         end
 
         unless book.publisher == nil
           xhtml << <<EOS
-<p class="book_publisher">#{xhtml_escape(book.publisher)}</p>
+<p class="book_publisher">#{xhtml_escape(book.publisher).force_encoding("UTF-8")}</p>
 EOS
         end