Skip to content

Add URL encoding: https://en.wikipedia.org/wiki/URL_encoding #51

@Albretch

Description

@Albretch

_AZ="激光, 這兩個字是甚麼意思"

_AZ=$(echo "${_AZ}" | recode html..utf-8)
echo "// __ $_AZ: |${_AZ}|"
// __ $_AZ: |激光, 這兩個字是甚麼意思|

_AZ="t%C3%AAte-%C3%A0-t%C3%AAte"
...
// __ $_AZ: |t%C3%AAte-%C3%A0-t%C3%AAte|
it should be: "tête-à-tête"

How do you make recode give you UTF-8 regardless of the input string (which encoding should be easy to figure out based on the patterns of the input string)?

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