sorenchr Posted December 30, 2008 Share Posted December 30, 2008 Hi, is there a php function that converts non-text characters to hex? Like ":" "!" etc. ? Im looking for something i can use to convert this piece of text: This is a test! Bla.Bla#Bla@ To this: This is a test%21 Bla%2eBla%23Bla%40 Thanks for you time. Best Regards Sorenchr Link to comment https://forums.phpfreaks.com/topic/138860-special-characters-to-hex/ Share on other sites More sharing options...
gevans Posted December 30, 2008 Share Posted December 30, 2008 you can use urlencode(); but that will convert white spaces as well Link to comment https://forums.phpfreaks.com/topic/138860-special-characters-to-hex/#findComment-726119 Share on other sites More sharing options...
sorenchr Posted December 30, 2008 Author Share Posted December 30, 2008 you can use urlencode(); but that will convert white spaces as well Thanks, whitespaces won't be any problem. Link to comment https://forums.phpfreaks.com/topic/138860-special-characters-to-hex/#findComment-726120 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.