J
Julia
Hi
I am trying to pass an encoded string to a JavaScript
the following is the C# code which convert the string STRING_TO_ENCODE to
base64
byte[] bytIn =
System.Text.UnicodeEncoding.Unicode.GetBytes(STRING_TO_ENCODE);
string result=System.Convert.ToBase64String
the STRING_TO_ENCODE contains both characters in Hebrew and English
I understand that JavaScript uses Unicode strings that is why I am using
UnicodeEncoding.Unicode.GetBytes
tha "result" variable is passed in the URL as a parameter
in the HTML i am using UTF8 char set
It DOES NOT WORK
Thanks
I am trying to pass an encoded string to a JavaScript
the following is the C# code which convert the string STRING_TO_ENCODE to
base64
byte[] bytIn =
System.Text.UnicodeEncoding.Unicode.GetBytes(STRING_TO_ENCODE);
string result=System.Convert.ToBase64String
the STRING_TO_ENCODE contains both characters in Hebrew and English
I understand that JavaScript uses Unicode strings that is why I am using
UnicodeEncoding.Unicode.GetBytes
tha "result" variable is passed in the URL as a parameter
in the HTML i am using UTF8 char set
It DOES NOT WORK
Thanks