view · edit · sidebar · attach · print · history

20160715-debug-encoding-issuen-sandoz-bbmb-ch

<< 20160718-fix-search-filter-xmlconv-fix-encoding-issue-and-flavor-bbmb-ch | Index | 20160714-fix-encoding-issue-sandoz-bbmb-ch >>


Summary

  • Debug encoding issue

Commits / Patches / Pull Requests, Scripts

Index


Debug sandoz.bbmb.ch Encoding Issue

I've put __puts__ at filter method in state/customers.rb.
It seems that there are still some encodings.

          FILTER.any? { |key|
          text = customer.send(key).to_s
          puts text.encoding
          text.encode(Encoding::UTF_8)
            pattern.match(text) }
@400000005788ae4e0b5ff2fc UTF-8
@400000005788ae4e0b5ff2fc UTF-8
@400000005788ae4e0b5ff2fc UTF-8
@400000005788ae4e0b5ff2fc UTF-8
@400000005788ae4e0b5ff2fc UTF-8
@400000005788ae4e0b5ff2fc UTF-8
@400000005788ae4e0b5ff2fc US-ASCII
@400000005788ae4e0b5ff6e4 UTF-8
@400000005788ae4e0b5ffacc UTF-8
@400000005788ae4e0b5ffacc UTF-8
@400000005788ae4e0b5ffacc UTF-8
@400000005788ae4e0b5ffacc US-ASCII
@400000005788ae4e0b5ffacc UTF-8
@400000005788ae4e0b5ffacc UTF-8
@400000005788ae4e0b5ffacc UTF-8
@400000005788ae4e0b5ffacc UTF-8

Which key has unexpecetd encoding?

@400000005788afcb1a6bbd94 UTF-8
@400000005788afcb1a6bbd94 UTF-8
@400000005788afcb1a6bbd94 UTF-8
@400000005788afcb1a6bbd94 UTF-8
@400000005788afcb1a6bc17c US-ASCII
@400000005788afcb1a6bc17c email
@400000005788afcb1a6bc17c 
@400000005788afcb1a6bc17c 
@400000005788afcb1a6bc17c UTF-8
@400000005788afcb1a6bc17c UTF-8
@400000005788afcb1a6bc17c UTF-8
@400000005788afcb1a6bc564 UTF-8
@400000005788afcb1a6bc564 US-ASCII
@400000005788afcb1a6bc94c email
@400000005788afcb1a6bc94c 
@400000005788afcb1a6bc94c 
@400000005788afcb1a6bc94c UTF-8
@400000005788afcb1a6bc94c UTF-8
@400000005788afcb1a6bc94c UTF-8
@400000005788afcb1a6bc94c UTF-8
@400000005788afcb1a6bc94c US-ASCII
@400000005788afcb1a6bcd34 email

Then I've added quick fix for this problem in production.
I'll fix this problem in next day.

view · edit · sidebar · attach · print · history
Page last modified on July 22, 2016, at 03:25 PM