joomla2.5 - Joomla paypal plugin post variables with special character not working -
i using joomla 2.5.4 , virtuemart 2.0.6, when seek payment paypal, in paypal summary of order: description showing without special character. shows n�mero instead of número. how can prepare ?
go plugins/vmpayment/paypal/paypal.php
and search function plgvmconfirmedorder()
you can see form @ lastly of function
$html = '<html><head><title>redirection</title></head><body><div style="margin: auto; text-align: center;">'; $html .= '<form action="' . "https://" . $url . '" method="post" name="vm_paypal_form">'; $html.= '<input type="submit" value="' . jtext::_('vmpayment_paypal_redirect_message') . '" />'; foreach ($post_variables $name => $value) { $html.= '<input type="hidden" name="' . $name . '" value="' . htmlspecialchars($value). '" />'; } $html.= '</form></div>'; $html.= ' <script type="text/javascript">'; $html.= ' document.vm_paypal_form.submit();'; $html.= ' </script></body></html>';
replace form this.
$html = '<html><head><title>redirection</title></head><body><div style="margin: auto; text-align: center;">'; $html .= '<form action="' . "https://" . $url . '" method="post" name="vm_paypal_form">'; $html.= '<input type="submit" value="' . jtext::_('vmpayment_paypal_redirect_message') . '" />'; foreach ($post_variables $name => $value) { $html.= '<input type="hidden" name="' . $name . '" value="' . htmlspecialchars($value). '" />'; } $html.= '<input type="hidden" name="charset" value="utf-8">'; $html.= '</form></div>'; $html.= ' <script type="text/javascript">'; $html.= ' document.vm_paypal_form.submit();'; $html.= ' </script></body></html>';
we added line
$html.= '<input type="hidden" name="charset" value="utf-8">';
this works fine me.
joomla2.5 virtuemart
No comments:
Post a Comment