How to urlencode an Actionscript ByteArray?

Alright, first, it looks like some crazy things are going on with your url encoding. The sample you posted above seems to be double encoded: x = unescape("%25C3%25BF%25C3%2598%25C3") >>> x "%C3%BF%C3%98%C3" >>> unescape(x) "ÿÃà Second, you shouldn't be using ByteArray.toString() if the ByteArray contains binary data. Instead, if I recall correctly, you should use ba.

ReadMultiByte(ba. BytesAvailable, "latin1") which will return a string containing the raw bytes Third, I feel like your URLEncoding class is suspect. Instead, you can just use the escape (and unescape ) builtins: escape("\12") "%0A.

Alright, first, it looks like some crazy things are going on with your url encoding. The sample you posted above seems to be double encoded: >>> x = unescape("%25C3%25BF%25C3%2598%25C3") >>> x "%C3%BF%C3%98%C3" >>> unescape(x) "ÿÃÃ" Second, you shouldn't be using ByteArray.toString() if the ByteArray contains binary data. Instead, if I recall correctly, you should use ba.

ReadMultiByte(ba. BytesAvailable, "latin1") which will return a string containing the raw bytes. Third, I feel like your URLEncoding class is suspect.

Instead, you can just use the escape (and unescape) builtins: >>> escape("\12") "%0A.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions