<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<link>http://www.skepticats.com/lnblog/entries/2005/09/28_2111/comments/comments.xml</link>
<title>A new test release</title>
<description>A new test release</description>
<item>
<title>Concerning v0.3.4</title>
<link>http://www.skepticats.com/lnblog/entries/2005/09/28_2111/comments/#comment2005-10-09_234041</link>
<description>
<![CDATA[<p>Hello,<br />How do I login as a user, different from administrator?</p>]]>
</description>
</item>
<item>
<title>update to the previous</title>
<link>http://www.skepticats.com/lnblog/entries/2005/09/28_2111/comments/#comment2005-10-09_234907</link>
<description>
<![CDATA[<p>I've figured out, that I've just got to add 'login.php' to web address I'm going to, and then respectively the login page will be shown.</p><p>Well, that's OK, but I think that some obvious way to reach the subject should exist, like for example adding a link 'Login' or something to the sidemenu.</p><p>Thanks for attention</p>]]>
</description>
</item>
<item>
<title>Bug with unicode symbols</title>
<link>http://www.skepticats.com/lnblog/entries/2005/09/28_2111/comments/#comment2005-10-09_235824</link>
<description>
<![CDATA[<p>Hello,<br />that's me again :)</p><p>The very first attempt to post messages containing cyrillic symbols has ended up into text, consisting of ampersands followed by symbol codes.</p><p>After viewing the posting HTML-source, the problem has been detected. The blog engine doesn't seem to convert &quot;&amp; a m p ;&quot;  escape sequences back to ampersands before returning the posting text to user.</p><p>Here's an excerpt therefrom:</p><p>&lt;div class=&quot;blogentrybody&quot;&gt;<br />&lt;p&gt;&amp;amp;#1055;&amp;amp;#1088;&amp;amp;#1080;&amp;amp;#1082;&amp;amp;#1088;&amp;amp;#1091;&amp;amp;#1090;&amp;amp;#1080;&amp;amp;#1083;. &amp;amp;#1059;&amp;amp;#1089;&amp;amp;#1090;&amp;amp;#1072;&amp;amp;#1085;&amp;amp;#1086;&amp;amp;#1074;&amp;amp;#1080;&amp;amp;#1083;. &amp;amp;#1047;&amp;amp;#1072;&amp;amp;#1087;&amp;amp;#1091;&amp;amp;#1089;&amp;amp;#1090;&amp;amp;#1080;&amp;amp;#1083;. &amp;amp;#1056;&amp;amp;#1072;&amp;amp;#1073;&amp;amp;#1086;&amp;amp;#1090;&amp;amp;#1072;&amp;amp;#1077;&amp;amp;#1090;.&lt;/p&gt;&lt;/div&gt;<br />&lt;div class=&quot;blogentryfooter&quot;&gt;</p><p>Thanks in advance<br /></p>]]>
</description>
</item>
<item>
<title>About login</title>
<link>http://www.skepticats.com/lnblog/entries/2005/09/28_2111/comments/#comment2005-10-10_003845</link>
<description>
<![CDATA[<p>Sorry for being unattentive. There IS a link :|</p><p>Sorry, again.</p>]]>
</description>
</item>
<item>
<title>About Unicode</title>
<link>http://www.skepticats.com/lnblog/entries/2005/09/28_2111/comments/#comment2005-10-10_004351</link>
<description>
<![CDATA[<p>My expedient solution was to add these lines to &quot;entry.php&quot;:</p><p>function bbcodeToHTML(...)</p><p>...<br />                $patterns[19] = &quot;/&amp;amp;/Usi&quot;; <br />...<br />                $replacements[19] = '&amp;'; </p><p><br />And everything worked just fine.</p>]]>
</description>
</item>
<item>
<title>On Unicode</title>
<link>http://www.skepticats.com/lnblog/entries/2005/09/28_2111/comments/#comment2005-10-10_104524</link>
<description>
<![CDATA[<p>WGM,</p><p>Thanks for all your feedback!  The translation of ampersands in Unicode HTML entities is not a bug - it works that way by design.  Posting in LBCode mode isn't *supposed* to allow HTML entities because the entire point of LBCode is to give non-technical users a simpler markup language.  The idea is that the user can type in pretty much any text he wants and it will be displayed as he typed it.  This includes typing in HTML code and having it displayed as the code.  </p><p>If you need to use HTML code in your post, then try using the &quot;allow HTML markup&quot; mode for your post. This &quot;raw HTML&quot; mode will leave your code completely untouched, so Unicode won't be a problem.  Of course, you'll have to enter line breaks and paragraphs manually, and there are still some issues with the preview mode, so it's not a perfect compromise.  Although, if you're writing entire posts in Unicode, I'm assuming you use an HTML editor rather than type all the escape sequences manually, so that probably isn't an issue.  (That reminds me - I've had the &quot;new post from uploaded file&quot; feature on the TODO list for a while now.  Maybe that would be a good compromise.</p>]]>
</description>
</item>
<item>
<title>Once again about Unicode</title>
<link>http://www.skepticats.com/lnblog/entries/2005/09/28_2111/comments/#comment2005-10-10_123610</link>
<description>
<![CDATA[<p>&gt;Although, if you're writing entire posts in Unicode,<br />&gt;I'm assuming you use an HTML editor rather than type<br />&gt;all the escape sequences manually</p><p>In fact, I just switch into Cyrillic keyboard layout and type message text. And the effect is, as follows. A far as I can figure out, the engine converts cyrillic symbols into escape-sequences. Then the ampersands in escape-sequences are in turn also converted into escape-sequences. And then the stuff is stored in XML-file. When in goes to rendering the posting, the engine just takes the raw contents of the appropriate field in XML-file and places it into HTML-output, and example of which has been shown before in my posting at 2005-10-09 23:58 CDT.</p><p>I'll type now some text in Russian for you to show the effect, before I've applied that expedient solution.</p><p>&quot;&amp;#1055;&amp;#1088;&amp;#1086;&amp;#1073;&amp;#1072; &amp;#1088;&amp;#1091;&amp;#1089;&amp;#1089;&amp;#1082;&amp;#1086;&amp;#1075;&amp;#1086;&quot;, &amp;#1095;&amp;#1090;&amp;#1086; &amp;#1087;&amp;#1086;-&amp;#1072;&amp;#1085;&amp;#1075;&amp;#1083;&amp;#1080;&amp;#1081;&amp;#1089;&amp;#1082;&amp;#1080; &amp;#1079;&amp;#1085;&amp;#1072;&amp;#1095;&amp;#1080;&amp;#1090; &quot;Probe of Russian&quot;</p>]]>
</description>
</item>
<item>
<link>http://www.skepticats.com/lnblog/entries/2005/09/28_2111/comments/#comment2005-10-10_124023</link>
<description>
<![CDATA[<p>&gt; Posting in LBCode mode isn't *supposed* to allow HTML<br />&gt; entities because the entire point of LBCode is to give<br />&gt; non-technical users a simpler markup language.</p><p>That's why I was saying my solution was expedient. For I don't know the whole inside of your software.</p>]]>
</description>
</item>
<item>
<link>http://www.skepticats.com/lnblog/entries/2005/09/28_2111/comments/#comment2005-10-10_124146</link>
<description>
<![CDATA[<p>s/expedient/crude/ - after one year without practice of English it has become a little rusty. Sorry.</p>]]>
</description>
</item>
<item>
<title>Interesting...</title>
<link>http://www.skepticats.com/lnblog/entries/2005/09/28_2111/comments/#comment2005-10-10_132545</link>
<description>
<![CDATA[<p>Well, that's very interesting.  I'll definitely have to figure out a way of handling this, but I really don't know how I'll do it just yet.  </p><p>I'm not set up to type Cyrillic characters, but I was able to copy and paste some into a form field.  It appears that PHP's htmlentities() is trying to convert the raw Unicode characters into escape sequences and doing a pretty bad job of it.  However, there also seems to be an issue with how the text is encoded when it is sent to the server, as Opera and Konqueror are giving me different encoding when I view the source.  Konqueror is showing all numeric encodings, like you posted, but Opera is showing my symbolic encodings, like &amp;ETH;&amp;Ntilde;&amp;ETH;&amp;frac34;.  If you don't mind my asking, what browser and character encoding are you using?</p><p>It looks like this will especially be an issue with comments.  For blog posts, the author can simply revert to HTML mode, as previously noted.  However, for comments, I don't think it's a good idea to allow raw HTML code in them, but I'm not sure of another good way to sanitize user input without htmlentities().  I think this one is going to take some time, meaning I can't promise it will be fixed in version 0.4.0, although I may include a work-around of some kind.</p>]]>
</description>
</item>
<item>
<link>http://www.skepticats.com/lnblog/entries/2005/09/28_2111/comments/#comment2005-10-10_143046</link>
<description>
<![CDATA[<p>Mozilla, ISO-8859-1 (default for pages, generated by your blog engine) which means that Cyrillic characters will be treated as Unicode characters.</p>]]>
</description>
</item>
<item>
<title>Concerning blog posts (not comments) you were right</title>
<link>http://www.skepticats.com/lnblog/entries/2005/09/28_2111/comments/#comment2005-10-11_001548</link>
<description>
<![CDATA[<p>Everythings works fine, when I choose option &quot;Allow HTML markup&quot;. In other cases the problem persists.</p><p>Concerning encodings. Before entering a text of blog post or comment I tried to switch browser to different Cyrillic character codings. And in all cases Cyrillic characters were treated as if they were Unicode characters. The results varied from encoding to encoding (because character codes do not coincide in different encodings). The common thing was that in case of every encoding the characters were converted to escape-sequences; and unlike the case of &quot;HTML markup&quot; in the cases of &quot;BB markup&quot; or &quot;auto markup&quot; these escape-sequences were stored in XML-file with ampersands converted into escape-sequences (&amp;amp;), too.</p><p>I'd say, that I wouldn't concentrate too much on correct handling of encodings, but I'd pay the main attention to the fact, that in cases of &quot;BB markup&quot; and &quot;Auto markup&quot; the ampersands in escape-sequences standing for some character (for example, the escape-sequence &amp;#1072;) are being in turn converted to &amp;amp; before they are stored in XML-file.</p><p>In case of &quot;HTML markup&quot; the ampersand is kept untouched.</p>]]>
</description>
</item>
<item>
<link>http://www.skepticats.com/lnblog/entries/2005/09/28_2111/comments/#comment2005-10-11_003530</link>
<description>
<![CDATA[<p>s/BB markup/LBCode markup/g</p>]]>
</description>
</item>
<item>
<title>Ad hoc fix</title>
<link>http://www.skepticats.com/lnblog/entries/2005/09/28_2111/comments/#comment2005-10-11_204107</link>
<description>
<![CDATA[<p>I've made an optional ad hoc fix to the code to account for this.  I've added a configuration constant, UNICODE_ESCAPE_HACK, to control it.</p><p>By default, LnBlog will now use htmlspecialchars() for escaping user entered text in LBCode and auto-markup modes.  This translates only a very limited subset of possible HTML entities and does not include Unicode characters.  When the above mentioned constant is enabled, it will revert to htmlentities() with a regular expression that unescapes the ampersand in numeric entieies.  </p><p>This fix will be in version 0.4.0.  It's not perfect, but at this point, I think it's better than nothing.</p>]]>
</description>
</item>
</channel>
</rss>