Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Problem with special character "č", posted by Matej Sedej on Fri Feb 16 09:18:56 2018 
    icon2.gif   Re: Problem with special character "č", posted by Matej Sedej on Fri Feb 16 09:36:18 2018 
       icon2.gif   Re: Problem with special character "č", posted by Stefan Ritt on Tue Mar 6 15:08:23 2018 
          icon2.gif   Re: Problem with special character "č", posted by Matej Sedej on Tue Mar 6 15:29:38 2018 
             icon2.gif   Re: Problem with special character "č", posted by Stefan Ritt on Tue Mar 6 15:54:23 2018 
                icon2.gif   Re: Problem with special character "č", posted by Matej Sedej on Tue Mar 6 16:09:05 2018 
                   icon2.gif   Re: Problem with special character "č", posted by Matej Sedej on Thu Mar 15 09:39:20 2018 elog.pnglogfile.png
                      icon2.gif   Re: Problem with special character "č", posted by Stefan Ritt on Fri Mar 16 12:46:09 2018 Screen_Shot_2018-03-16_at_13.00.25_.png
                         icon2.gif   Re: Problem with special character "č", posted by Matej Sedej on Fri Mar 16 14:12:04 2018 
                            icon2.gif   Re: Problem with special character "č", posted by Stefan Ritt on Fri Mar 16 14:35:05 2018 
                               icon2.gif   Re: Problem with special character "č", posted by Matej Sedej on Fri Mar 16 15:39:17 2018 
                                  icon2.gif   Re: Problem with special character "č", posted by Stefan Ritt on Fri Mar 16 17:51:30 2018 
                                     icon2.gif   Re: Problem with special character "č", posted by Stefan Ritt on Fri Mar 16 18:08:10 2018 
                                        icon2.gif   Re: Problem with special character "č", posted by Matej Sedej on Fri Mar 16 20:54:40 2018 
Message ID: 68755     Entry time: Tue Mar 6 15:54:23 2018     In reply to: 68754     Reply to this: 68756   68761
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Bug report  OS: Windows  ELOG Version: ELOG V3.1.3-fd7 
Subject: Re: Problem with special character "č" 

In the attribe filed, HTML code is not allowed for security reasons. If you want to bypass this (on your own risk), put

allow html = 1

into your config file.

Stefan

Matej Sedej wrote:

Hello Stefan,

thank you for the reply. The explanation does not solve my problem though. 

1) Could you elaborate, why the body text field CORRECTLY writes the character while the attribute fields write and display the HTML code?

2) If I understand you correctly the problem also contradicts your statement: "When an existing elog entry gets shown by the browser, the code is translated back to the character." and is visible in this very post. The subject field writes and displays it incorrectly, while the body text writes and displays it perfectly OK. See: Č č ?

3) We do not use any scripts. If we were to use a script to replace the HTML code with the actual character, the attribute fields would still display È instead of Č. Also, I have no idea how to write such a script. :)

Thanks,

Matej

Stefan Ritt wrote:

Actually unicode characters are converted by your browser into HTML code (such as &#268) where 268 decimal = 10C hex. elog just writes to file what it gets from the browser. When an existing elog entry gets shown by the browser, the code is translated back to the character. Why do you care what is written to the log file? If you use scripts or so to parse your log files, you have to adapt them to correctly decode HTML encoded characters. This is necessary since log files are ASCII and thus encode one charecter in one byte. Your Slovenian characters require two bytes in unicode, so some kind of "special" encoding is necessary.

Stefan

 

 

 

ELOG V3.1.5-3fb85fa6