Skip to content

Crash when parsing utf8mb3 BLOB columns (MariaDB 10.7) Tag: v0.5.1 #143

Open
@juan-ferrer-toribio

Description

@juan-ferrer-toribio

Because MariaDB 10.7 has renamed utf8 to utf8mb3 (wich is the real econding name, also supported by MySQL), iconv.decode() function fails when utf8mb3 is passed as encoding (second parameter) when parsing BLOB columns.

Error: Encoding not recognized: 'utf8mb3' (searched as: 'utf8mb3')
    at Object.getCodec (iconv-lite/lib/index.js:104:23)
    at Object.getDecoder (iconv-lite/lib/index.js:125:23)
    at Object.decode (iconv-lite/lib/index.js:38:25)
    at Object.readMysqlValue (zongji/lib/common.js:470:23)
    ...

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