1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Trouble with arabic text!

Trouble with arabic text!

4 posts, 0 answered
  1. saeid
    saeid avatar
    2 posts
    Registered:
    14 Dec 2010
    23 Feb 2011
    Link to this post
    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?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    23 Feb 2011
    Link to this post
    Hello saeid,

    Try to use HttpUtility.UrlDecode before setting the text.

    Regards,
    Ivan Dimitrov
    the Telerik team
  3. saeid
    saeid avatar
    2 posts
    Registered:
    14 Dec 2010
    23 Feb 2011
    Link to this post
    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 asp.net control (RadControl) in the Custom sitefinity Controls. 
    Please see the picture of the first post.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    25 Feb 2011
    Link to this 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 %>" />

    Greetings,
    Ivan Dimitrov
    the Telerik team
4 posts, 0 answered