YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

IPN charset utf-8? Options
jeroeng
#1 Posted : Monday, March 14, 2005 6:51:52 AM
Rank: Starting Member

Groups: Registered

Joined: 3/11/2005
Posts: 3
Location: ,
Hello, According to the Java sample regarding IPN, the following line: str = str + "&" + paramName + "=" + URLEncoder.encode(paramValue); The URLEncoder.encode() used above is a depricated function. Now I've used "UTF-8" as a second parameter. But we received an error "INVALID" when I post the reply back to the IPN server. I received a first_name to our system as "Jurri<EB>n" and I think this is why the IPN failed (response was "INVALID"). Could it be PayPal uses another charset encoding to read/validate our response? What charset does the PayPal system use? How can I validate that invalid request wasn't caused by our system? Bye, Jeroen van der Grift. Software Developer with First8 B.V.
Sponsor  
 
che_fox
#2 Posted : Monday, March 14, 2005 1:56:28 PM
Rank: Starting Member

Groups: Registered

Joined: 2/18/2004
Posts: 48
Location: ,
Hi jeroeng,

I just noticed the same problem myself. item_name and other fields related to the transaction seem to be encoded in UTF-8, but other fields like first_name and last_name are not, even when you pass in UTF-8 as your encoding for Web Accept buttons.

I think you might have uncovered a bug in PayPal, as it's clearly not intended behavior. Hopefully they will address this issue.

As far as the encoding used for first names/last names, it seems like it's currently Windows-1252 (or ISO 8859-1).
jeroeng
#3 Posted : Tuesday, March 15, 2005 6:44:58 AM
Rank: Starting Member

Groups: Registered

Joined: 3/11/2005
Posts: 3
Location: ,
Any idea how to contact the PayPal developer team? Or do I need to wait till they put a response on this forum?
PayPalStephen
#4 Posted : Tuesday, March 15, 2005 9:37:15 PM
Rank: Starting Member

Groups: Registered

Joined: 10/17/2002
Posts: 2,139
Location: ,
Hello,

You can use the web form in the help section of Developer Central or click on the handle of my name to send off an email.

We are aware of this issue and we are working to resolve it, I will post an update to this topic when I have addtional information or a resolution.

Stephen Ivaskevicius
PayPal/eBay, Inc.
www.paypal.com/pdn
scpcomps
#5 Posted : Thursday, March 17, 2005 2:01:03 PM
Rank: Starting Member

Groups: Registered

Joined: 3/17/2005
Posts: 4
Location: ,
I contacted PayPal regarding this issue but they just keep pointing me to the PDN. Hopefully they will address the issue soon.

Steve Perrins
SCP Computer Services

Kind regards,

Steve Perrins
http://www.scp-computers.co.uk
PayPalStephen
#6 Posted : Thursday, March 24, 2005 5:30:06 PM
Rank: Starting Member

Groups: Registered

Joined: 10/17/2002
Posts: 2,139
Location: ,
Hello,

The characters are changed in the IPN post when using the language Encoding in your profile of Western European Languages. This is passed as the 'form_charet' with a value of 'windows-1252'.

Example:
ä = %E4
ö = %F6
ü = %FC
Ä = %C4
Ö = %D6
Ü = %DC
ß = %DF


Stephen Ivaskevicius
PayPal/eBay, Inc.
www.paypal.com/pdn
mklee
#7 Posted : Friday, April 29, 2005 8:52:10 AM
Rank: Starting Member

Groups: Registered

Joined: 6/14/2004
Posts: 8
Location: ,
The majority of our IPNs are VERIFIED with the "windows-1252" charset, including the ü, ß, etc.

However, from time to time, we got some INVALID IPNs, which is found valid when checked through the Paypal website.

We suspect that some characters, e.g. the euro sign, is not working with the charset...

How could we eliminate these rare cases?
We're currently running on W2k. And is going to migrate to RedHat soon.
jeroeng
#8 Posted : Thursday, February 16, 2006 11:11:25 AM
Rank: Starting Member

Groups: Registered

Joined: 3/11/2005
Posts: 3
Location: ,
yesterday we received an INVALID response. This time the item_name field contained some "weird" data:

PayPal IPN: item_name= ...(560&lt;E2&gt;&lt;82&gt;&lt;AC&gt; + 10&lt;E2&gt;&lt;82&gt;&lt;AC&gt; ...)

where de ... is normally readable but removed for privacy reasons.

Can someone please verify if this indeed is an error at PayPal's side? We are sending everything in the "windows-1252" format.

Thanks!

Jeroen.
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.359 seconds.