Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Unwanted characters showing when using Bottom Text Login to a html file, posted by Hung Dao on Wed Nov 13 23:46:38 2013 bottomtextlogin.jpgexample.htm
    icon2.gif   Re: Unwanted characters showing when using Bottom Text Login to a html file, posted by Andreas Luedeke on Thu Nov 14 11:31:23 2013 
       icon2.gif   Re: Unwanted characters showing when using Bottom Text Login to a html file, posted by Hung Dao on Thu Nov 14 20:06:44 2013 
          icon2.gif   Re: Unwanted characters showing when using Bottom Text Login to a html file, posted by Andreas Luedeke on Fri Nov 15 08:34:05 2013 
             icon2.gif   Re: Unwanted characters showing when using Bottom Text Login to a html file, posted by Hung Dao on Fri Nov 15 23:02:03 2013 
Message ID: 67623     Entry time: Fri Nov 15 23:02:03 2013     In reply to: 67617
Icon: Reply  Author: Hung Dao  Author Email: hungtdao@yahoo.com 
Category: Question  OS: Windows  ELOG Version: 2.9.2 
Subject: Re: Unwanted characters showing when using Bottom Text Login to a html file 

Andreas Luedeke wrote:

Hung Dao wrote:

Andreas Luedeke wrote:

Hung Dao wrote:
When using Bottom Text Login to a html file showing some unwanted characters. Also, the ELOG Version is longer displayed. Bottom Text Login = example.htm Attached are bottomtextlogin.jpg which shows the characters on the left and example.htm which I used.

 I have a possible explanation for this problem, but it is just guess work. If I'm right, then just download the latest ELOG version and it will work properly again.

  • You've downloaded an elog version from git, which still contained the line 12 in elogd.c: char svn_revision[] = "$Id$";
  • Since you did checkout from git, the $Id$ was not substituted.  
  • ELOG trys to extract the version by this:      rsprintf
              ("<center><a class=\"bottomlink\" title=\"%s\" href=\"https://midas.psi.ch/elog/\">ELOG V%s-%d</a></center>",
               loc("Goto ELOG home page"), VERSION, atoi(svn_revision + 13));
  • svn_revision + 13 is pointing into the void. Still I would have expected that you get a number as a result.

My advice: download again and retry.
 

 
English (auto-detected) » English
 

 I have downloaded a latest version.  It has displayed the new version as ELOG V2.9.2-bac715d where seems defined in GIT_REVISION as I guess.  Then I set Bottom Text Login to a html file, it still shows those unwanted characters.

English (auto-detected) » English
 

Okay, why don't you just remove the unwanted characters from the html file? Because the attached file contains exactly those characters.

Yes, unwanted characters are in my file.  In fact, they are not visible under some editor.  So, I have found a reference from this site http://www.ventrino.com/blog/60/2008/07/three-little-characters-i%C2%BB%C2%BF-designed-to-make-your-life-hell/ about how to remove them.  Basically, file's properties has to set to either ASCII or Encode as UTF-8 without BOM.  Thanks.

ELOG V3.1.5-fe60aaf