Click to See Complete Forum and Search --> : Windows-1256 and unicode


hhn
July 31st, 2007, 08:39 AM
Hello
I am using an Activex in my Html page. i need to get some data from this Activex via defined functions. the functions return a byte array as output. This byte array includes a string characters in its bytes. for example when returned data shall contain characters of "Hello" string, the function returns a byte array that encompass 5 byte, each of them has windows-1256 code of one character.
the problem is when i want to display this string. it dosn't work and displays odd charactersin my textbox (i guess they are unicode presentation of byte array) :

Textbox1.value = myActivex.Get_Data();

I will thank you for any comment or solution.

thank you