Error: An invalid character was found in text content

Last post 06-22-2010, 6:08 AM by tairon. 5 replies.
Sort Posts: Previous Next
  •  05-15-2009, 3:20 PM 52210

    Error: An invalid character was found in text content

    I've only recently downloaded the trial version for testing and I really like what I see. The product seems very flexible and customisable. My compliments!
     
    However, on my test page I run into a problem when I set Editor1.Text to the value of a memo field from a record in my database.
    It doesn't matter which record I try to edit, the error is always: "An invalid character was found in text content"
     
    What's wrong?
     
    BTW, it's a client-side JavaScript error.

    Regards, Marja
  •  05-15-2009, 3:46 PM 52213 in reply to 52210

    Re: Error: An invalid character was found in text content

    MajaR,
     
    Can you check the following example?
     
     
     
    The source code of this example can be found in the download package.
     
    You can modify it to meet your requirements.
     
    Keep me posted

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  05-15-2009, 4:05 PM 52217 in reply to 52213

    Re: Error: An invalid character was found in text content

    I've tried that and the base page did not have this error.
     
    But the example page uses a very basic editor, so I gradually added some configuration options that I use in my own test page.
    That's how I found out that the error occurs when I set: CustomCulture="nl-NL"
     
    The current code which produces the error is:

    <CE:Editor ID="Editor1" CustomCulture="nl-NL" AutoConfigure="Simple" Height="200" runat="server"></CE:Editor>


    Regards, Marja
  •  05-19-2009, 3:42 AM 52309 in reply to 52217

    Re: Error: An invalid character was found in text content

    Any ideas on how to prevent this error?
    At this point we're still only evaluating the CuteEditor, but it is useless for us if we can't set it's language to Dutch without getting errors.

    Regards, Marja
  •  05-22-2009, 4:25 PM 52437 in reply to 52309

    Re: Error: An invalid character was found in text content

    This turned out to be an encoding issue. I had the following line in my web.config file:

    <globalization enableClientBasedCulture="true" culture="nl-NL" uiCulture="nl-NL" requestEncoding="ISO-8859-15" responseEncoding="ISO-8859-15" fileEncoding="iso-8859-15" />

    Changing that to: 
    <globalization enableClientBasedCulture="true" culture="nl-NL" uiCulture="nl-NL" />
    solved the issue.

    At this point I'm not really sure what effect the removal of those encoding properties will have elsewhere in my application, but it did solve the CuteEditor problem.


    Regards, Marja
  •  06-22-2010, 6:08 AM 61932 in reply to 52437

    Re: Error: An invalid character was found in text content

    Hi,
     
    We have the same issue.
    When adding responseEncoding="ISO-8859-1" to the web.config globalization  the "invalid character was found in text content" message starts to appear every time an editor is loaded. This is a major issue since removing the responseEncoding messes up our site completely.
     
    Is there anyway to set the editor to the same encoding or some other way to get rid of the error message?
     
    Regards Chris
View as RSS news feed in XML