|
|
db296ff |
--- alexandria-book-collection-manager-0.7.5/lib/alexandria/export_library.rb.export_csv 2020-10-17 15:49:16.241200513 +0900
|
|
|
db296ff |
+++ alexandria-book-collection-manager-0.7.5/lib/alexandria/export_library.rb 2020-10-17 16:01:18.184960155 +0900
|
|
|
db296ff |
@@ -108,12 +108,12 @@ module Alexandria
|
|
|
5cccbb5 |
io.puts "<TITLE>#{book.title} </TITLE>"
|
|
|
5cccbb5 |
# put a link to the book's cover. only works on iPod 5G and above(?).
|
|
|
5cccbb5 |
if File.exist?(cover(book))
|
|
|
5cccbb5 |
- io.puts '' + book.title + ""
|
|
|
5cccbb5 |
+ io.puts '' + book.title.force_encoding('UTF-8') + ""
|
|
|
5cccbb5 |
else
|
|
|
5cccbb5 |
- io.puts book.title
|
|
|
5cccbb5 |
+ io.puts book.title.force_encoding('UTF-8')
|
|
|
5cccbb5 |
end
|
|
|
5cccbb5 |
- io.puts book.authors.join(", ")
|
|
|
5cccbb5 |
- io.puts book.edition
|
|
|
5cccbb5 |
+ io.puts book.authors.join(", ").force_encoding('UTF-8')
|
|
|
5cccbb5 |
+ io.puts book.edition.force_encoding('UTF-8')
|
|
|
5cccbb5 |
io.puts((book.isbn || ""))
|
|
|
db296ff |
# we need to close the files so the iPod can be ejected/unmounted
|
|
|
db296ff |
# without us closing Alexandria
|
|
|
db296ff |
@@ -380,8 +380,8 @@ module Alexandria
|
|
|
5cccbb5 |
end
|
|
|
5cccbb5 |
end
|
|
|
5cccbb5 |
bibtex << "\",\n"
|
|
|
5cccbb5 |
- bibtex << "title = \"#{latex_escape(book.title)}\",\n"
|
|
|
5cccbb5 |
- bibtex << "publisher = \"#{latex_escape(book.publisher)}\",\n"
|
|
|
5cccbb5 |
+ bibtex << "title = \"#{latex_escape(book.title.force_encoding('UTF-8'))}\",\n"
|
|
|
5cccbb5 |
+ bibtex << "publisher = \"#{latex_escape(book.publisher.force_encoding('UTF-8'))}\",\n"
|
|
|
db296ff |
if book.notes && !book.notes.empty?
|
|
|
db296ff |
bibtex << "OPTnote = \"#{latex_escape(book.notes)}\",\n"
|
|
|
db296ff |
end
|