7
impf0s
6y

Just found out the API of our zentracloud sensors is sending the units with a space before the actual unit. Couldn't figure out for half an hour why Doctrine is not finding the unit in the database. Encoding? JSON decoding? Character itself? Screw you. Screw you...

Comments
  • 1
    @impf0s I was giving this a look, and after careful research i found an issue right there:
  • 1
    @BGMP huh? :O
  • 2
    But percent does not have a whitespace before it ;)
  • 1
    Not sure why they'd put a space in front of it, when the unicode for percent ° is big enough as a spacer.

    Then again, a simple trim or regex on that key, when occurred, can parse and remove that for you before putting it in the database anyway.

    I see how this could be firing the rant though. It's not obvious at all...
  • 1
    @SanitizedOutput That’s definitely
    most probably the reason why
  • 0
    Additionally I have to say , that phpref didn't show me the pre-whitespace, because they didn't use the right css styles too
Add Comment