Trouble with arabic text! - General Discussions - General Discussions - Progress Community
 General Discussions

Trouble with arabic text!

  • Trouble with arabic text!
  • 251917_problem.JPG
    I've created a custom control which extends sitefinity search control, but the problem is some how the Arabic text in control not encoding well, what should I do for using Arabic text in controls?
  • Hello saeid,

    Try to use HttpUtility.UrlDecode before setting the text.

    Ivan Dimitrov
    the Telerik team
  • Sorry my bad, maybe I didn't say the problem correctly,
    my problem is the Encoding of Arabic text as text attribute of label, textbox or any control (RadControl) in the Custom sitefinity Controls. 
    Please see the picture of the first post.
  • Hi saeid,

    There are methods Server.HtmlEncode and Server.HtmlDecode that you can use to manipulate the text of your control. Sitefinity supports localization so you can use our labels.

    <asp:Literal runat="server" ID="Literal16" Text="<%$ Resources:MyMessage, MyTest %>" />

    Ivan Dimitrov
    the Telerik team