I read data form SQL server which have arabic data , then write it to text file, the arabic data appear ???? in the text file while I use the following code:
TextWriter
writer = new StreamWriter(path, false, Encoding.GetEncoding("windows-1256"));
any suggestion please
Note: I can read the arabic data correctly in sql
I use c# 2005 and read from sql server 2000