Skip to content

Farsi in URL wrongly encoded to "Double UTF-8" #490

@manu-cyber

Description

@manu-cyber

I encountered an issue where Farsi characters are encoded incorrectly.

The quote below contains pretty much every information I know about the topic, but I’m happy to answer additional questions if I can.

17:13:18 <JAA> c3manu: Re 8c1e0e2phxz76zhg3famykftb, not entirely sure what's going on there. https://paydarymelli.ir/fa/tag/1/%D8%AF%D8%A7%D8%B9%D8%B4%DB%8C redirects to 'Location: /fa/tags/1114/1/داعشی', which wpull then encodes as https://paydarymelli.ir/fa/tags/1114/1/%C3%98%C2%AF%C3%98%C2%A7%C3%98%C2%B9%C3%98%C2%B4%C3%9B%C2%8C rather than https://paydarymelli.ir/fa/tags/1114/1/%D8%AF%D8%A7%D8%B9%D8%B4%DB%8C
17:13:24 <JAA> for some reason, i.e. double UTF-8.
17:13:43 <JAA> I guess it's the same class of issue we've seen before regarding unencoded Location headers.

cc @JustAnotherArchivist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions