Ad Widget

Collapse

[1.5.3] import/export of special characters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xs-
    Senior Member
    Zabbix Certified Specialist
    • Dec 2007
    • 393

    #1

    [1.5.3] import/export of special characters

    I tried to import/export a template with the degrees celcius char in it (°C).
    Exporting is ok, the xml holds the ° char.
    When importing, the import stops with an error (because of this char) but the notification is 'Update Successfull' (or something like that).
  • Niels
    Senior Member
    • May 2007
    • 239

    #2
    In my experience the import function often skips various parts of an xml file without notifying the user. Non-ASCII chars are verboten.

    Comment

    • NOB
      Senior Member
      Zabbix Certified Specialist
      • Mar 2007
      • 469

      #3
      Originally posted by Niels
      In my experience the import function often skips various parts of an xml file without notifying the user. Non-ASCII chars are verboten.
      You are right. Of course, german umlauts are not valid, too.
      They are exported fine, but the import fails.
      This time with an error message like "invalid char".
      We are happy that we just use english versions of Windows on the servers
      we are monitoring,
      Clients (desktop/laptops) are not monitored over here.
      Some of the performance counters on german versions of windows
      contain umlauts !

      Regards

      Norbert.

      Comment

      • xs-
        Senior Member
        Zabbix Certified Specialist
        • Dec 2007
        • 393

        #4
        Point taken
        But, why not just ignore the invalid char (which exported correctly) on import instead of just stopping the import on error.

        IMHO it would be good practice with export/import functionality, that whatever the export function gives you, you can always import (within the same version of the program ofcourse)

        Please either fix the export or the import.
        Export: deny export or strip the invalid chars from the export file stream.
        Import: deny import before inserting into the database, or strip the invalid chars from the import file stream.

        Comment

        Working...