Skip to content

Commit

Permalink
force encoding marker to get us green on rbx-19mode
Browse files Browse the repository at this point in the history
  • Loading branch information
yob committed Feb 7, 2012
1 parent a613207 commit 21cb3db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/pdf/reader/encoding.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ def utf8_conversion_impossible?

def little_boxes(times)
codepoints = [ PDF::Reader::Encoding::UNKNOWN_CHAR ] * times
codepoints.pack("U*")
ret = codepoints.pack("U*")
ret.force_encoding("UTF-8") if ret.respond_to?(:force_encoding)
ret
end

def convert_to_utf8(str)
Expand Down

0 comments on commit 21cb3db

Please sign in to comment.