*** dose.rb 2011-11-29 09:03:03.076982830 +0100 --- src/model/dose.rb 2011-11-29 08:42:53.654911355 +0100 *************** *** 29,35 **** qty = (qty.first + qty.last) / 2.0 @not_normalized = [qty_str, unit].compact.join(' ') end ! if(match = %r{([^/]*)/\s*(#{np})\s*(.*)}u.match(unit.to_s)) qty_str = round(qty).to_s div = round(match[2]) @not_normalized = [ --- 29,36 ---- qty = (qty.first + qty.last) / 2.0 @not_normalized = [qty_str, unit].compact.join(' ') end ! #if(match = %r{([^/]*)/\s*(#{np})\s*(.*)}u.match(unit.to_s)) ! if(match = %r{([^/]*)/\s*(#{np})\s*(.*)}u.match(unit.to_s.force_encoding('utf-8'))) qty_str = round(qty).to_s div = round(match[2]) @not_normalized = [