문제

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?

도움이 되었습니까?

해결책

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

urldecode("%C3%96lkis") = 'Ölkis'
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top