Workaround novel PayPal.com bug: basket item name fraud check fails if name contains special characters
This fraud check probably isn't necessary and might be better to use a better method for detecting authenticity of a payment (or not doing so at all and instead verifying the IPN signature and accepting the data).
Updated by beat almost 2 years ago
As reproduced on Paypal Sandbox:
Error returned is like:
Payment notification mismatch: currency, item name or number or quantity mismatch: IPN item_name (Donation for test2 uk) does not match basket item_name (Donation for test2 Łuk) nor their trimmed sizes for IPN (Donation for test2 uk) and basket (Donation for test2 Łuk) nor their url-decoded form (Donation for test2 uk).
This is a Paypal.com bug:
It is due to PDT callback "_notify_synch" returning results in Windows-1252 charset instead of UTF-8 as before, so incompatible characters are transformed into %1A (SUB - subtitute) encoding.
Working on workaround.