Welcome Guest, Not a member yet? Register   Sign In
How should data be encoded in the URL
#1

Hi,

I need to put JSON data in my URLs, but when I encode it with urlencode() or rawurlencode() CI complains that "The URI you submitted has disallowed characters."

My current workaround is to first encode using rawurlencode() and then encode the result with base_64encode()... is there a better way to do this?

Code:
base64_encode(rawurlencode($json_data));
Reply


Messages In This Thread
How should data be encoded in the URL - by guiweber - 02-14-2015, 01:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB