Skip to content

Basic authentication fails with special characters in password #5781

Closed
@jpraet

Description

I am trying to connect to an OpenShift cluster with username / password. My password contains a "£" character.

String encoded = Base64.getEncoder().encodeToString(usernameAndPassword.getBytes(StandardCharsets.ISO_8859_1));

I think maybe it should be usernameAndPassword.getBytes(StandardCharsets.UTF_8)?

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions