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
Post a Comment