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. |