Skip to content

Convert non-ascii names of trigger and exception (+ non-ascii exception message) to UTF-8 before saving them in firebird.log or showing in a trace log #8271

Open
@pavel-zotov

Description

@pavel-zotov

When trigger on DISCONNECT raises exception, the name of trigger + name of exception + exception message are saved in firebird.log.
Also, they all can be seen in the trace.log if we turn on 'log_errors' config parameter.

If some of them contain non-ascii characters then firebird.log / trace log may look unreadable: non-ascii characters will be displayed as mojibakes or could missed ("swallowed").
This occurs only when we use single-byte character set for connection. No such problem if conn charset = utf8.

It will be good if any non-ascii text will be always converted to utf8 before saving in firebird.log or displaying in the trace log.
Attached .zip contains .sql scripts and result for cp1250, cp1251 and cp1252 - all of them are similar (and there is no difference whether i set font = 'consolas' or 'lucida console' in my cmd.exe).

Excel file "non-ascii-characters-in-firebird-and-trace-log_-_overall-outcome.xlsx" show all results as table for convenience.
non-ascii-characters-in-firebird-and-trace-log.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions