Skip to content

multi-byte utf8 characters are wrongly escaped #127

Open
@mathias-baumann-sociomantic

Description

I was aware that the function is just a simple "good enough for now" (because I wrote it with that mindset).
I mean, it was like, better this than nothing.

However, I recently was hit by some multi-byte utf8 string that blew up on me and I reverted now to using base64 encoding.

however, we should consider doing escaping of such strings correctly.

Maybe we can take "inspiration" from this function:

https://github.com/sociomantic-tsunami/libdrizzle-redux/blob/ff7f7eaa6431a523eb68279c54fc53d4859f0066/libdrizzle/query.cc#L60-L161

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