yousaf009 / google-checkout-php-sample-code

Automatically exported from code.google.com/p/google-checkout-php-sample-code
0 stars 0 forks source link

XML does not properly encode values in UTF-8 #74

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use a Unicode string in product description 

What is the expected output? What do you see instead?
Google Checkout should be able to display Unicode string but instead it 
displays incorrect encoding.

What version of the product are you using? On what operating system?
Checkout PHP v1.3.3

Please provide any additional information below.
Patched XML Builder is attached. htmlentities should be called by giving 
explicit UTF-8 encoding (it was default in PHP 5.4 and after but not before):
htmlentities($value, ENT_COMPAT | ENT_XML1, 'UTF-8')

Original issue reported on code.google.com by var...@gmail.com on 29 Jan 2013 at 7:06

Attachments: