12 lines
703 B
Diff
12 lines
703 B
Diff
--- alexandria-0.6.8/lib/alexandria/ui/ui_manager.rb.icon_multibyte 2012-05-30 10:04:18.132330198 +0900
|
|
+++ alexandria-0.6.8/lib/alexandria/ui/ui_manager.rb 2012-05-29 18:29:54.430690741 +0900
|
|
@@ -824,6 +824,9 @@
|
|
iter[Columns::IDENT] = book.ident.to_s
|
|
iter[Columns::TITLE] = book.title
|
|
title = book.title.sub(REDUCE_TITLE_REGEX, '\1...')
|
|
+ # More nice method is needed here...
|
|
+ title = title.encode("UTF-16", "UTF-8", :invalid => :replace, :undef => :replace, :replace => ".")
|
|
+ title = title.encode("UTF-8")
|
|
iter[Columns::TITLE_REDUCED] = title
|
|
# Don't know why, however force_encoding seems needed here to
|
|
# prevent crash...
|