Object key value corrupted

落花浮王杯 提交于 2019-12-12 18:08:38

问题


Good day

The following code is used in a Laravel framework to return data from our server:

$ses = DB::connection('odbc')
            ->table('HBO.SM200T')
            ->where('USRPF1', '=', strtoupper(auth()->user()->name))
            ->first();

But on one of my pc's it returns my data fine as below:

{#780 ▼
  +"WAGWRD": "VTER"
  +"PERSNR": "56846"
  +"STELS": "59"
  +"TAK": "324"
  +"BESKR": "                              "
  +"STVDAT": "99999999"
  +"TAALN": "2"
  +"USRPF1": "AV        "
  +"USRPF2": "          "
}

But on my new installation of Fedora 24 it returns as:

{#783 ▼
  +b"W\x00‚«\x14V": "VTER"
  +b"P\x00‚«\x14V": "56846"
  +"S\x00\x00\x00\x00": "59"
  +b"T\x00»": "324"
  +b"B\x00ƒ«\x14": "                              "
  +b"S\x00ƒ«\x14V": "99999999"
  +b"T\x00ƒ«\x14": "2"
  +b"U\x00ƒ«\x14V": "          "
}

It looks like the Key of the pair is not decoded correctly?

Does anyone know of a solution.

Thanks in advance.

来源:https://stackoverflow.com/questions/41021288/object-key-value-corrupted

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!