Skip to content

offset with muti byte character #15

Description

@arzeo68

I had an issue with multi byte character (éèêë ÉÈÊË àâ ÀÂ Çç).

I fix it by replacing the line l.266 in prettyPrinter.hpp

Before:

return data.size();

Fix:

return std::count_if(data.begin(), data.end(),[](char c) { return (static_cast<unsigned char>(c) & 0xC0) != 0x80; } );

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions