Skip to content

Tag-pages with non-ascii characters are empty #5

@pesasa

Description

@pesasa

In my native language (Finnish) we have some non-ascii characters (åäö) that are used frequently. If I use those in tags, like #työpöytä, the page /tag/työpöytä will just show empty page.

There is a workaround by using html entities for special characters instead of real utf-8-characters. However, we are living 2015 and I think we should be able to write characters directly as they are.

The problem comes from line 93 where

$this->current_tag = htmlentities(urldecode($current_tag_raw), 0, "UTF-8");

first urldecodes the tag and then converts non-ascii characters to html entities. Is this conversion needed for some reason? If I change this to:

$this->current_tag = urldecode($current_tag_raw);

my tags seem to work. Does this break something else?

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