I have some encoded data in mdb file, like this Úæäí, and ÚáÇä; I tried with notepad++, first creating new file with ANSI Encoding, after that putting that text on to it, finally changing the encoding to Windows-1256, the result is عوني ,علان perfect, but i can't reproduce this scenario by coding(C#). here is the Code:
public string Decode(DataRow rw,string colName)
{
Encoding srcEnc = Encoding.GetEncoding("from what ?");
Encoding destEnc = Encoding.GetEncoding("1256");// arabic encoding
byte[] srcVal = rscEnc.GetBytes(rw[colName].ToString());
byte[] destVal = Encoding.Convert(srcEnc,destEnc,srcVal);
return destEnc.GetString(destVal);
}