Page 1 of 1

Unicode in .NET

Posted: 2007-02-21T03:49:07-07:00
by lavige777
I use MagickNet library.
I need to draw arabic and russian text. Programming language is C#. I enter text to TextBox control (text stores as unicode) and then try to draw it, but it draws just '????'. If I enter russian leters in TextBox then I recieve wrong letters.
A try to set property myTextImage.TextEncoding = "UTF-8" and "UTF-16", but nothing changes.
Tell me please how to draw right russian and arabic letters.
Thank you

Re: Unicode in .NET

Posted: 2007-02-22T19:50:06-07:00
by anthony
You also have to use a font that has the Unicode characters you want.

Re: Unicode in .NET

Posted: 2007-02-28T23:18:38-07:00
by lavige777
anthony wrote: You also have to use a font that has the Unicode characters you want.


I use Arial font which contains arabic chars. How can I display text using MagickNet. I can do it from command line in bellow method: save unicode text in file in UTF-8 encoding and then read text from this file.
In my .NET application I have unicode string with arabic chars. How can I display this text?

Re: Unicode in .NET

Posted: 2007-02-28T23:46:14-07:00
by anthony
Sorry beyond what I have given, I have no knowledge of MagicNet or .NET.

Hopfully someone else can help.

Re: Unicode in .NET

Posted: 2007-03-02T05:24:46-07:00
by lavige777
anthony wrote: Sorry beyond what I have given, I have no knowledge of MagicNet or .NET.

Hopfully someone else can help.


10x for your help, now I combine some modification do via command line and others via MagickNet, but in future I want do all with using just .Net library. Unfortunately there is few documentation and examples about MagickNet function.