Skip to content

offset with muti byte character #15

@arzeo68

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; } );

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