I need to show readable arabic string correctly in WinForm, in Notepad++ i set encoding to ANSI, paste the string "ÌÜÜæØÜÜÇÈá ÊíÌÜÜí 2", after that i go to encoding -> Char coding -> Arab -> Windows 1256, and i gets the correct value جــوطــابل تيجــي 2
How can i do that by C#?, i try with that but dosn't work:
Encoding en_source = Encoding.GetEncoding("windows-1250");
Encoding en_dest = Encoding.Unicode;
byte[] srcBytes = en_source.GetBytes("ÌÜÜæØÜÜÇÈá ÊíÌÜÜí 2");
return en_dest.GetString(srcBytes);