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
it says the response :
12-18-2009 04:47 PM
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!!
05-13-2016 05:52 AM
06-01-2016 01:00 PM