json - Encoding an array for url in PHP -


i have been working on qr codes, need pass array qr data needs encoding. data json_array used generate pdf.

if use base64 encoding qr code stupidly large, , when using ascii85 breaks qr.

can let me know of encoding praticies work in url, shorted coding betetr. qr_generator.php?data={encoded_json_array}

you can try this:

urlencode($string);

it encodes string appended url parameter. if have array, try:

urlencode(json_encode($array);


Comments

Popular posts from this blog

java - Unable to make sub reports with Jasper -

scala - play framework: Modules were resolved with conflicting cross-version suffixes -

Passing Variables from AngelScript to C++ -