cancel
Showing results for 
Search instead for 
Did you mean: 

accented characters

We have an increasingly global customer base. As such, more people from spansih and french speaking countries are submitting transactions (which very often have accented characters in names, addresses, cities, etc...). Authorize.net  chokes on these accented characters and throws an error.

 

We use AIM, programming in vb.net, our website is asp.net.

We've searched all your documentation and previous posts. We see one discussion on this, but not much detail was discussed.

 

We have analyzed the suggested code that authorize.net provides and we are using for the checkout process. The problem in handling accented characters looks to clearly be in the encoding for the streamwriter function. Current suggested code by authorize.net is:

 

myWriter = New StreamWriter(objRequest.GetRequestStream())


It seems to us that we could easliy fix this problem so that accented characters would work by changing the encoding to unicode. So, simply replacing the above code with this insread:



myWriter = New StreamWriter(objRequest.GetRequestStream(),System.Text.Encoding.Unicode)


My question though, is whether the authorize.net platform will accept unicode encoding, or whether this will cause all sorts of problems? Would appreciate your thoughts/comments/insight.
Thanks!


enewmark
Member
1 REPLY 1

No, the Authorize.Net system cannot currently handle Unicode characters.  You most likely wouldn't get an error submitting them, but they will most likely not be the same when they are returned.  We do accept accented characters, but they must be submitted in an extended western encoding.

Trevor
Administrator Administrator
Administrator