Skip to content

Invalid encoding of ö char #15

@Koziolek

Description

@Koziolek

My code is simple:

$base64.encode($scope.loginText)

Now if I put ö as loginText then I get 9g== that is invalid. As a reference, and valid, encoding I use java:

import java.util.Base64;
//...
byte[] encode = Base64.getEncoder().encode("ö".getBytes());
System.out.println(new String(encode));

produces 'w7Y=

and python

>>> import base64
>>> base64.b64encode("ö")
'w7Y=

Similar issue for other chars from german language, some from spanish and polish.

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