Skip to content

World cloud ignores many titles because they have special characters #1

@janmechtel

Description

@janmechtel

This query will yield many titles that have non-json conform characters.

The should be replaced, but seems like sqlite doesn't support regexp so it's probably better to do when ingesting the data.

SELECT '["' || replace(replace(lower(replace(trim(replace(Title,'"','')), ' ', '", "')), CHAR(9), ''), CHAR(10), '') || '"]' AS array FROM ( SELECT DISTINCT Title FROM pings ) WHERE Title is not null AND json_valid('["' || replace(replace(lower(replace(trim(replace(Title,'"','')), ' ', '", "')), CHAR(9), ''), CHAR(10), '') || '"]') = 0

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