Patch (src/util/oddbapp.rb)
Note
Patch (src/util/oddbapp.rb)
def name@name_base.force_encoding('utf-8') if @name_base
@name_descr.force_encoding('utf-8') if @name_descr
[@name_base, @name_descr].compact.join(', ') end def composition_text @composition_text || @packages.collect { |cd, pac| (src = pac.swissmedic_source) && src[:composition] }.compact.first@composition_text.force_encoding('utf-8') if @composition_text
end
def _lookup(key, *args)
key = key.intern if key.is_a? String
if(args.size > 0)
result = ""
args.each_with_index { |text, index|
result << (lookup(key.to_s + index.to_s) || ' ')
#result << text.to_s
result << text.to_s.force_encoding('utf-8')