0

I have some scraped data in some pretty weird shape. It looks like this:

%C3%96lkis

When converted, it should look like this:

Ölkis

I googled some, and found that %C3%96 is presumably UTF-8 Hex for the character Ö.

There's lots of special characters in my data escaped/converted like this into different UTF-8 Hex codes.

So how do I convert it back to a normal string?

1 Answer 1

3

It looks like your data is url encoded, you want to use PHP's urldecode function

urldecode("%C3%96lkis") = 'Ölkis'
Sign up to request clarification or add additional context in comments.

Comments

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.