Re: Issue with russian/cyrillic and editor.xhtml... (ce6.6)

  •  07-13-2010, 10:39 PM

    Re: Issue with russian/cyrillic and editor.xhtml... (ce6.6)

    Hi mike.chambers,
     
    It si not the best way. But for now you can try this
     
    1. <%@ Page Language="C#" ValidateRequest="false" %>   
    2.   
    3. <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>   
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    5.   
    6. <script runat="server">   
    7.     protected override void OnLoad(EventArgs e)   
    8.     {   
    9.         if (!IsPostBack)   
    10.         {   
    11.             editor1.Text = "Δουλεύουν";   
    12.         }   
    13.         base.OnLoad(e);   
    14.     }   
    15.     protected void getXHTML_Click(object sender, EventArgs e)   
    16.     {   
    17.         string str = editor1.XHTML.Replace("ύ""&#973;");   
    18.         textBox1.Text = str;   
    19.     }   
    20. </script>   
    21.   
    22. <html xmlns="http://www.w3.org/1999/xhtml">   
    23. <head id="Head1" runat="server">   
    24.     <title>Untitled Page</title>   
    25. </head>   
    26. <body>   
    27.     <form id="form1" runat="server">   
    28.         <CE:Editor ID="editor1" runat="server">   
    29.         </CE:Editor>   
    30.         <asp:Button ID="getXHTML" runat="server" Text="Get XHTML" OnClick="getXHTML_Click" />   
    31.         <asp:TextBox ID="textBox1" runat="server" Width="800px"></asp:TextBox>   
    32.     </form>   
    33. </body>   
    34. </html>  
    Regards,
     
    ken
View Complete Thread