Ad Widget

Collapse

API : user.create does not like some characters (charset issue ?) => Invalid JSON

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gerard-wl
    Junior Member
    • Sep 2015
    • 24

    #1

    API : user.create does not like some characters (charset issue ?) => Invalid JSON

    If I send
    {"jsonrpc": "2.0", "method": "user.create", "params": {"alias":"A1234", "name":"Duij", "surname":"Catherine", "usrgrps": [ { "usrgrpid": "91" }, { "usrgrpid": "92" }, { "usrgrpid": "3" }, { "usrgrpid": "5" }], "user_medias": [{ "mediatypeid": "1", "sendto":["[email protected]"]}]}, "id":1, "auth" : "ab966788bde641cfefb98d25b2c15522"}
    its works
    But if "name" is "Drießen" or "Malacé" (german or french characters) i get "Invalid Json"
    What can I do ?
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    You need to make sure you are using utf-8.

    Comment

    • gerard-wl
      Junior Member
      • Sep 2015
      • 24

      #3
      Yes sorry, it works in binary utf-8

      Comment

      Working...