base64 encoded characters should appear correctly on the screen.
Actual behavior
Some Unicode characters encoded with base64 appear funny on the screen.
For example, the Unicode character '\u03a6' should appear as the Greek letter Phi, but appears as two gibberish characters on the screen. On the other hand, '\u2660' appropriately appears as a Spade symbol.
Steps to reproduce the behavior
On bash: $ echo -n $'\u03a6' | base64 yields: zqY=
However, on r2: ag- ; agn "Phi" base64:zqY= ; agg yields gibberish characters (see screenshot below)
Notes:
The character appears fine if printed directly, without being encoded to base64 first.
Work environment
commit: 154416c8fd4ce0a399c42e27ba88a0c535e320a0 build: 2020-08-02__02:36:41
Expected behavior
base64 encoded characters should appear correctly on the screen.
Actual behavior
Some Unicode characters encoded with base64 appear funny on the screen. For example, the Unicode character
'\u03a6'
should appear as the Greek letter Phi, but appears as two gibberish characters on the screen. On the other hand,'\u2660'
appropriately appears as a Spade symbol.Steps to reproduce the behavior
On bash:
$ echo -n $'\u03a6' | base64
yields:zqY=
However, on r2:ag- ; agn "Phi" base64:zqY= ; agg
yields gibberish characters (see screenshot below)Notes:
e scr.utf8 = true
Additional Logs, screenshots, source-code, configuration dump, ...