Windows-1256 and unicode

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) :

[code] Textbox1.value = myActivex.Get_Data();[/code]

I will thank you for any comment or solution.

thank you

Comments

  • : 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) :
    :
    : [code]: Textbox1.value = myActivex.Get_Data();[/code]:
    :
    : I will thank you for any comment or solution.
    :
    : thank you

    link to this http://www.google.com/search?hl=en&q=metadata+tag+windows-1256
    also check the meta tag defiiinton at www.w3.org. its ss 5 of HTML 4.01 entitled Document Representation
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion