webtechnick / CakePHP-Paypal-IPN-Plugin

CakePHP Paypal Instant Payment Notification Plugin
http://www.webtechnick.com
82 stars 47 forks source link

Paypal form utf8 encoding issue #8

Open AngelVillanueva opened 12 years ago

AngelVillanueva commented 12 years ago

The Paypal form created by the helper does not include the "accept-charset" tag nor the charset input field. That causes problems with the correct encoding of special characters like accents and the like.

Line 116 of PaypalHelper should be:

$retval = "<form action='{$options['server']}/cgi-bin/webscr' method='post' accept-charset='utf-8'>

";

instead of:

$retval = "<form action='{$options['server']}/cgi-bin/webscr' method='post'>

";

Daaaaad commented 11 years ago

Can't see the difference between the "search" and the "replace" string :(