What does b“string” mean in dd() function?

前端 未结 1 643
迷失自我
迷失自我 2021-01-19 11:48

dd($result);

Result:

...
+description: \"عند...ترنت.\"    
+keywords: b\"°ó¨Ü¨ü¨ê...Ü°®\"
...

+keywords h

相关标签:
1条回答
  • 2021-01-19 12:03

    If you read: https://symfony.com/doc/current/components/var_dumper.html (which is what Laravel is using) you can see:

    So the answer is the string is not valid in UTF-8 (I am guessing b stands for binary).

    Maybe check if you can detect the encoding if it's something else.

    0 讨论(0)
提交回复
热议问题