carviaso / google-checkout-dotnet-sample-code

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

<new-order-notification> replaces © characters with question marks #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Post a cart where an item has a © symbol in the item name.
2. Place the order.
3. Listen for the <new-order-notification>.

What is the expected output? What do you see instead?
The <new-order-notification> should UTF-8 encode the © symbol as bytes 194
and 169. It contains byte 63 (question mark) where the © symbol should be.

I don't know if this is a Google-side bug or a problem with the .NET code.
To eliminate the risk of the .NET framework mistranslating the request when
I pull it out as a string, I instead wrote the raw byte numbers (0-255)
from the <new-order-notification> to file.

To make sure my code is OK, I also posted a local UTF-8 text file
containing a © symbol to it. My code told me bytes 194 and 169 were
received for the © symbol, which is the correct UTF-8 encoding.

Original issue reported on code.google.com by martin.o...@gmail.com on 20 Jan 2007 at 10:36

GoogleCodeExporter commented 9 years ago

Original comment by martin.o...@gmail.com on 3 Apr 2007 at 9:13