Agent and Agent2 inconsistency in symbol replacement when file isn't UTF-8

XMLWordPrintable

      Issue was found during ZBX-25805 test.

      Steps to reproduce:

      1. Create item with key: logrt["/home/zabbix/japan_jis_coding"]
      2. Create file with encoding Shift_JIS (Japanese) and write some text like this:

        33. お母さんはフレームを洗っていました
        34. お母さんはフレームを洗っていました
        35. ppp お母さんはフレームを洗っていました
        36. ppp お母さんはフレームを洗っていました
        37. ppp ムを洗っていました
        38. お母さんはフレームを洗っていました

      3. Go to Monitoring->Latest data and check this item

      Result:
      In latest data japanese symbols are replaced with question marks '?' for Agent:

      But for Agent2 - with replacement character '�' (black rhombus with question mark):

      Expected:
      For consistency of two agents replacement of symbols should not be different.

        1. zbx_agent1_replace_001.png
          23 kB
          Julija Zelezova
        2. zbx_agent2_replace_002.png
          22 kB
          Julija Zelezova

            Assignee:
            Michael Veksler
            Reporter:
            Julija Zelezova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: