dd($result);
Result:
...
+description: "عند...ترنت."
+keywords: b"°ó¨Ü¨ü¨ê...Ü°®"
...
+keywords
has the letter 'b' in front of the string, description does not have that... What does the 'b' mean? And if it is possible, how can I convert the string?
Btw, this is the result if I var_dump the keywords:
string(116) "���,����,�,��,����������,����������,��,��������,�������,������:"
I think it has to do something with charset, i'm using UTF-8.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With