B
billsahiker
Where do I find the unicode values for math operators like equal,
minus and plus sign and how to I check if the value of a byte array is
one of these operators? I populate the byte array from a filestream
object using the Read method. So far Ihave been working with utf8
files and I just use
if(byte == 61) //0x3D works also
it returns true if it is the equal sign. But how do I do this if I
work with a unicode/utf16 encoded file? I figure I need to compare two
bytes for unicode, right? but where do I get those values? I googled
for unicode code chart and the like but after a couple hours cannot
find this.
BTW, the files I am reading are all text. my test files are created
with streamwriter using the desired encoding object.
Bill
minus and plus sign and how to I check if the value of a byte array is
one of these operators? I populate the byte array from a filestream
object using the Read method. So far Ihave been working with utf8
files and I just use
if(byte == 61) //0x3D works also
it returns true if it is the equal sign. But how do I do this if I
work with a unicode/utf16 encoded file? I figure I need to compare two
bytes for unicode, right? but where do I get those values? I googled
for unicode code chart and the like but after a couple hours cannot
find this.
BTW, the files I am reading are all text. my test files are created
with streamwriter using the desired encoding object.
Bill