Skip to content

HttpUtils method urlEncodeFormParams Charset #1444

@keyhunter

Description

@keyhunter

When the charset is not utf-8 , this code (org.asynchttpclient.util.HttpUtils) will produce the wrong result

public static ByteBuffer urlEncodeFormParams(List<Param> params, Charset charset) { return StringUtils.charSequence2ByteBuffer(urlEncodeFormParams0(params), charset); }

This Code specifies the utf-8 encoding, and can't change, this will result in errors under other encodings(GBK etc).

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