<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="2.0">
  <channel>
    <title>HtmlEditor</title>
    <link>http://www.itwriting.com/phorum/list.php?3</link>
    <description><![CDATA[For discussion of the .Net HTMLEditor control]]></description>
    <language>EN</language>
    <pubDate>Tue, 18 Jul 2006 07:13:12 +0100</pubDate>
    <lastBuildDate>Tue, 18 Jul 2006 07:13:12 +0100</lastBuildDate>
    <category>HtmlEditor</category>
    <generator>Phorum 5.1.25</generator>
    <ttl>60</ttl>
    <item>
      <title>Re: unicode,utf8</title>
      <link>http://www.itwriting.com/phorum/read.php?3,3204,3223#msg-3223</link>
      <author>Tim</author>
      <description><![CDATA[This is old code, you should try the latest in the repository.<br />
<br />
Tim]]></description>
      <category>HtmlEditor</category>
      <guid isPermaLink="true">http://www.itwriting.com/phorum/read.php?3,3204,3223#msg-3223</guid>
      <pubDate>Tue, 18 Jul 2006 07:13:12 +0100</pubDate>
    </item>
    <item>
      <title>Re: unicode,utf8</title>
      <link>http://www.itwriting.com/phorum/read.php?3,3204,3221#msg-3221</link>
      <author>gaiaway</author>
      <description><![CDATA[hmm...<br />
i've just retried the codes to insert BOM in util.cs like this,<br />
<br />
<br />
				if (<br />
					(documentVal.StartsWith('\xFEFF'.ToString()))<br />
					|| (documentVal.StartsWith('\xEFBB'.ToString()))<br />
					|| (documentVal.StartsWith('\xFFFE'.ToString()))<br />
					|| (documentVal.StartsWith('\x0000'.ToString() + '\xFEFF'.ToString()))<br />
					)<br />
				{<br />
                    byte[] preamble = UnicodeEncoding.Unicode.GetPreamble();<br />
                    String byteOrderMark = UnicodeEncoding.Unicode.GetString(preamble, 0, preamble.Length);<br />
                    documentVal = byteOrderMark + documentVal;<br />
				}<br />
				else<br />
				{<br />
					byte[] preamble = UnicodeEncoding.Unicode.GetPreamble();<br />
					String byteOrderMark = UnicodeEncoding.Unicode.GetString(preamble, 0, preamble.Length);<br />
					documentVal = byteOrderMark + documentVal;<br />
				}<br />
<br />
<br />
it works fine now. i don't know why it didn't work before.<br />
maybe i made some mistakes when trying that..<br />
(i can't find the delete button for the above post)<br />
sorry for my messy writing.<br />
bye.<br />
<br />
Park.]]></description>
      <category>HtmlEditor</category>
      <guid isPermaLink="true">http://www.itwriting.com/phorum/read.php?3,3204,3221#msg-3221</guid>
      <pubDate>Tue, 18 Jul 2006 02:29:04 +0100</pubDate>
    </item>
    <item>
      <title>Re: unicode,utf8</title>
      <link>http://www.itwriting.com/phorum/read.php?3,3204,3220#msg-3220</link>
      <author>gaiaway</author>
      <description><![CDATA[hello Tim.<br />
Sorry for my late response.<br />
i've found an article about the similar situation like me.<br />
it suggested to insert some codes in util.cs.<br />
(trying to insert BOM when the file is missing it)<br />
i followed his words. but still got some weird charaters.<br />
so i tried to insert the code(inserting BOM at the file header) before<br />
i call htmleditor.LoadDocument() like this<br />
<br />
                byte[] preamble = UnicodeEncoding.Unicode.GetPreamble();<br />
                String byteOrderMark = UnicodeEncoding.Unicode.GetString(preamble, 0, preamble.Length);<br />
                HTMLFile = byteOrderMark + HTMLFile;<br />
<br />
                HTMLEditorcontrol.LoadDocument(HTMLFile);<br />
<br />
after that, it works fine so far. <br />
i'm afraid i don't have much time to search why :( <br />
just i hope some beginners like me can use this poor solution as a temporary one.<br />
<br />
Regards<br />
Park]]></description>
      <category>HtmlEditor</category>
      <guid isPermaLink="true">http://www.itwriting.com/phorum/read.php?3,3204,3220#msg-3220</guid>
      <pubDate>Tue, 18 Jul 2006 02:18:41 +0100</pubDate>
    </item>
    <item>
      <title>Re: unicode,utf8</title>
      <link>http://www.itwriting.com/phorum/read.php?3,3204,3205#msg-3205</link>
      <author>Tim</author>
      <description><![CDATA[I agree, this is a rather mysterious area.<br />
<br />
Is this the latest version from the repository?<br />
<br />
Have you checked that the BOM is being applied? and the new DefaultPreamble property?<br />
<br />
Tim]]></description>
      <category>HtmlEditor</category>
      <guid isPermaLink="true">http://www.itwriting.com/phorum/read.php?3,3204,3205#msg-3205</guid>
      <pubDate>Mon, 10 Jul 2006 07:15:46 +0100</pubDate>
    </item>
    <item>
      <title>unicode,utf8</title>
      <link>http://www.itwriting.com/phorum/read.php?3,3204,3204#msg-3204</link>
      <author>gaiaway</author>
      <description><![CDATA[Hello!<br />
<br />
i've been trying to use your control(in NET 2.0). However when I load a document(with a utf8 encoding) by LoadDocument(string s), i see all korean characters crashed.<br />
meta tag is like below,<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=euc-kr&quot;&gt;<br />
<br />
its view under web browsers are fine.<br />
of course, DocumentEncoding property of htmlEditor is set to UTF8<br />
(i tried other encoding options also)<br />
<br />
the result is almost same after all this trial.<br />
<br />
I have no idea how to fix that.<br />
Any help will be appreciated . <br />
<br />
Best regards]]></description>
      <category>HtmlEditor</category>
      <guid isPermaLink="true">http://www.itwriting.com/phorum/read.php?3,3204,3204#msg-3204</guid>
      <pubDate>Sun, 09 Jul 2006 09:38:58 +0100</pubDate>
    </item>
  </channel>
</rss>
