1

I have the following code:

echo html_entity_decode("„", ENT_QUOTES, "UTF-8");

Result is „ but expected result is .

I also tried ISO-8859-1 instead of UTF-8, but it's still the same.

Why isn't html_entity_decode working in this case?

1

1 Answer 1

-1

This is a special char, not html entity, so I thin this would be the right way.

<?php
    $str = "&#132;";
    echo htmlspecialchars_decode($str);

    ?>
Sign up to request clarification or add additional context in comments.

1 Comment

I just ran that code. It output &#132; when the desired output is

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.