hello,
my application reads a text written in the windows 1256 arabic encoding and then sends that string to an electronic scale. scale can only understand Iran system standard encoding, I don't know how to convert windows 1256 encoded text it to Iran system standard encoding.
thanks in advance.
Hany.
Loading
VulpesPosted Jul 18, 2012, 11:22 AM
http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx
but is described in Wikipedia here together with the unicode code-points of its characters:
http://en.wikipedia.org/wiki/Iran_System_encoding_standard
Someone's tried to create GetBytes and GetString methods for it in this Code Project article:
http://www.codeproject.com/Tips/272928/iranian-system-encoding-standard
The Windows 1256-encoding which is, of course, supported by .NET is described here:
http://en.wikipedia.org/wiki/Windows-1256
I know next to nothing about Arabic or Persian scripts but there appears to be a considerable difference between the two in the 128-255 character region. I think you'll have to try and write your own mapping between the two but it's not going to be easy :(