locked
ascii code with hebrew encoding RRS feed

  • Question

  • User1310055179 posted

    Hi,

    I am converting a vb6 application to .net and i ran into a problem.

    I need to convert the following code line to pure  C#, without using the vb reference:

    strBuff = strBuff + Microsoft.VisualBasic.Strings.Chr(C & 0xff);
    

    I tried using the following code:

    strBuff = strBuff + (char)(C & 0xff);
    

    However, it only works for some of the charachters.

    "C" is an Ascii code.

    I need the hebrew encoding conversion of:

    C & 0xff

    This is the Ascii table I am using:

    http://www.ascii.ca/cp1255.htm

    For example, the result for (char)124 should be the first hebrew letter - alef (א).

    Thanks

    Monday, July 4, 2016 9:58 AM

Answers