#983 Exclude the following chars option does not work


For example, I enter the question mark character, ?, in the exclude box, tick high ANSI characters checkbox and generate a 30 char password, and question mark chars will still appear in the password.

IMO, the exclude characters should override the other options, so if I enter a quesation mark in the exclude box and thew "Also include these characters" box and have High ANSI characters ticked, then a question mark should NOT appear in the generated password.


  • Defenestration

    Defenestration - 2012-03-22

    Just to clarify that this bug is present in KeePass Classic 1.21

  • Paul

    Paul - 2012-03-22

    I think you are seeing the question mark because KeePass V1 does not handle unicode characters generated by the high ANSI setting.

    cheers, Paul

  • Dominik Reichl

    Dominik Reichl - 2012-03-22

    Paul's exactly right (thanks, Paul! :-)). The question marks that you might see (this depends on the operating system) are actually high ANSI characters that can't be displayed.

    The question mark is a 'special character', not a high ANSI character. When you enable 'special characters' only and exclude '?', you'll see that '?' doesn't appear in the generated passwords, as expected.

    Unfortunately the password generator of KeePass 1.x (which is compiled as ANSI application) can't predict which high ANSI characters can be displayed and which can't.

    KeePass 2.x isn't affected by this problem, because it runs as a Unicode application under all modern Windows systems.

    Best regards

  • Dominik Reichl

    Dominik Reichl - 2012-03-22
    • status: open --> closed

Log in to post a comment.