change chartset from Code

You can use Like this Code

private string ConvertUnicode(string Str) { Encoding latinEncoding = Encoding.GetEncoding("Windows-1252"); Encoding ArabicEncoding = Encoding.GetEncoding("Windows-1256"); byte[] latinBytes = latinEncoding.GetBytes(Str); return ArabicEncoding.GetString(latinBytes); }

Comments

Popular posts from this blog

C# Crop white space from around the image

Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=xx.0.0.0, Culture=neutral, PublicKeyToken='xxx' or one of its dependencies.

The specified version string contains wildcards, which are not compatible with determinism.