Php QR Code library not working? -


i got display text when pass

function getqrcode($qr){      include 'application/views/inc/qrcode.php';      $this->view->qrcode = qrcode::png($qr);     $this->view->render('user/qrcode'); } 

it works fine when symbol '%' shows in $qr variable wont work why ??

php qr code library: http://phpqrcode.sourceforge.net/

the code you're showing isn't particularly relevant doesn't show how process variable before use it, nor significant part(s) of library.

at guess you're passing in value using get/post , aren't url-encoding string. % used special sequences eg %20 represents space.

a list of characters need encoded available here.

try replacing % %25.

for future reference, online encoder/decoder can found @ http://meyerweb.com/eric/tools/dencoder/


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -