cancel
Showing results for 
Search instead for 
Did you mean: 

when posting non english characters

Hello

 

It's about non english characters so when I'm posting the data to authorize.net and if there is a non english character it was throwing me an exception that it didn't read the whole string (because non english characters take more bytes, so then I did

 

 

 

  Dim encoding As New UTF8Encoding
                Dim bytes As Byte() = encoding.GetBytes(System.Text.Encoding.ASCII.GetString(System.Text.Encoding.ASCII.GetBytes(postData.ToString)))
                request.ContentLength = bytes.Length
                Using writeStream As Stream = request.GetRequestStream()

                    writeStream.Write(bytes, 0, bytes.Length)
                End Using

 

and it was working the only problem is that because it's UTF8 it does take off the non english characters.

 

I got the option to work with UTF7 and i tried but then it says

 

The following errors have ocurred

(13) The merchant login ID or password is invalid or the account is invalid.

 

then I searched and found this

 

https://community.developer.authorize.net/t5/Integration-and-Testing/C-AIM-code-and-non-english-char...

 

it says the response :

 

 

Hey chengbao,

 

Unfortunately, non-English characters are not allowed in any of our APIs. Try submitting the request with standard English characters and see if that works.

 

Thanks,

Michelle

Developer Community Manager

 

 

then I called Authorize.net and they told me that Authorize.net does not accept non English Characters, I would like to ask if someone has done something with non English characters (a work around ) or there is nothing I can do.

 

Thanks so much!!

 

 

authorizeK
Contributor
1 REPLY 1

Hello @authorizeK

 

We currently only support characters in iso-8859-1.

 

Richard

RichardH
Administrator Administrator
Administrator