3
Reply

javascirpt and C#

Abdul Raheem Mohammad

Abdul Raheem Mohammad

Jul 10 2015 5:14 AM
346
I prepared the below CSharp code and I want to send that encoded data to js file where i want original data... Is it possible to decode it on js page Problem: the byte array send by csharp file is not decoded at js

 UTF8Encoding utf8 = new UTF8Encoding();
        String unicodeString = "ABCD";
        // Encode the string.
        Byte[] encodedBytes = utf8.GetBytes(unicodeString);

Answers (3)