N
nitm
hi,
i'm using the clipboard to get the data from a word document in html format.
it works great but the data i get seems to be in the wrong encoding (the
text looks like a long sequance of wierd signs i.e.: ??©?¤??).
the document is in hebrew and (i guess) that this is the reason (when i test
it with english it works great).
here's my code:
Encoding hebEncoding = Encoding.GetEncoding("iso-8859-8");
System.IO.MemoryStream vMemoryStream = Clipboard.GetData("Html Format") as
System.IO.MemoryStream;
vMemoryStream.Position = 0;
byte[] vBytes = new byte[vMemoryStream.Length];
vMemoryStream.Read(vBytes, 0, (int)vMemoryStream.Length);
return hebEncoding.GetString(vBytes);
anyone know what's wrong?
thank!
i'm using the clipboard to get the data from a word document in html format.
it works great but the data i get seems to be in the wrong encoding (the
text looks like a long sequance of wierd signs i.e.: ??©?¤??).
the document is in hebrew and (i guess) that this is the reason (when i test
it with english it works great).
here's my code:
Encoding hebEncoding = Encoding.GetEncoding("iso-8859-8");
System.IO.MemoryStream vMemoryStream = Clipboard.GetData("Html Format") as
System.IO.MemoryStream;
vMemoryStream.Position = 0;
byte[] vBytes = new byte[vMemoryStream.Length];
vMemoryStream.Read(vBytes, 0, (int)vMemoryStream.Length);
return hebEncoding.GetString(vBytes);
anyone know what's wrong?
thank!