5cccbb5
--- alexandria-book-collection-manager-0.7.4/lib/alexandria/export_library.rb.export_html	2020-01-03 16:17:05.053552865 +0900
5cccbb5
+++ alexandria-book-collection-manager-0.7.4/lib/alexandria/export_library.rb	2020-01-03 16:24:11.989122168 +0900
5cccbb5
@@ -302,7 +302,7 @@
5cccbb5
           xhtml << <<~EOS
5cccbb5
             
5cccbb5
                  src="#{File.join('pixmaps', final_cover(book))}"
5cccbb5
-                 alt="Cover file for '#{xhtml_escape(book.title)}'"
5cccbb5
+                 alt="Cover file for '#{xhtml_escape(book.title).force_encoding("UTF-8")}'"
5cccbb5
                  height="#{image_s.height}" width="#{image_s.width}"
5cccbb5
             />
5cccbb5
           EOS
5cccbb5
@@ -314,7 +314,7 @@
5cccbb5
 
5cccbb5
         unless book.title.nil?
5cccbb5
           xhtml << <<~EOS
5cccbb5
-            

#{xhtml_escape(book.title)}

5cccbb5
+            

#{xhtml_escape(book.title).force_encoding("UTF-8")}

5cccbb5
           EOS
5cccbb5
         end
5cccbb5
 
5cccbb5
@@ -322,7 +322,7 @@
5cccbb5
           xhtml << '
    '
5cccbb5
           book.authors.each do |author|
5cccbb5
             xhtml << <<~EOS
5cccbb5
-              
  • #{xhtml_escape(author)}
  • 5cccbb5
    +              
  • #{xhtml_escape(author).force_encoding("UTF-8")}
  • 5cccbb5
                 EOS
    5cccbb5
               end
    5cccbb5
               xhtml << ""
    5cccbb5
    @@ -330,13 +330,13 @@
    5cccbb5
     
    5cccbb5
             unless book.edition.nil?
    5cccbb5
               xhtml << <<~EOS
    5cccbb5
    -            

    #{xhtml_escape(book.edition)}

    5cccbb5
    +            

    #{xhtml_escape(book.edition).force_encoding("UTF-8")}

    5cccbb5
               EOS
    5cccbb5
             end
    5cccbb5
     
    5cccbb5
             unless book.publisher.nil?
    5cccbb5
               xhtml << <<~EOS
    5cccbb5
    -            

    #{xhtml_escape(book.publisher)}

    5cccbb5
    +            

    #{xhtml_escape(book.publisher).force_encoding("UTF-8")}

    5cccbb5
               EOS
    5cccbb5
             end
    5cccbb5