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

Last post 07-14-2010, 7:18 AM by mike.chambers. 2 replies.
Sort Posts: Previous Next
  •  07-13-2010, 5:56 AM 62448

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

    Ok some lorem cyrillic....
     
    Δουλεύουν
     
    if I view the HTML
     
    I see
     
    Δουλεύουν
     
    however editor.xhtml gives
     
    Δουλεύουν
     
    notice the unencoded character in the string...
     
    Help please!
    Reproduceable in the http://cutesoft.net/example/xmloutput.aspx demo... and it's not just that one char but serveral...
  •  07-13-2010, 10:39 PM 62464 in reply to 62448

    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
  •  07-14-2010, 7:18 AM 62479 in reply to 62464

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

    I know you already say that it's not a great workaround... but it really isn't... there are 10's of characters from cyrillic that have this problem...
     
    presumably now you have seen this it will be resolved in a patch to the ce engine?
View as RSS news feed in XML