how to convert text readed from barcode to arabic text
问题 I have barcode image with type "pdf417",it content a arabic text , When read it using barcode it through a text like this "ÃÍãÏ#" how can I convert this text to its original text (arabic) 回答1: If your method gives you a byte[] use: var str = Encoding.UTF8.GetString(yourBytes); or, perhaps var str = Encoding.GetEncoding(1256) // 1256 is the Windows Arabic codepage .GetString(yourBytes); If your method gives you a string do this: // iso-8859-1 is a codepage that can be used to convert back some