I have read, that b in front of something means binary.
I am receiving a text field from MS DB, column type is CLOB.
I am using Laravel and when I die dump (dd()) I see:
b"""
My big text
"""
If I create simple string and dd() it I see:
"My big text"
The problem is that json_encode() returns false on this b-String, but everything fine with simple string.
Could you please tell me how can I make it a simple string?
P.S. I have tried unpack() -> unsuccess
EDIT: actually json_encode() not related to this binary string. It was failing cause of non utf8 symbol. I see ...(22:45 – 0:15 CEST)..., but when I do utf8_decode($text), I see ...(22:45 ? 0:15 CEST)... and if I try to json_encode() now, it's works perfect.