it-tools icon indicating copy to clipboard operation
it-tools copied to clipboard

[BUG] Base64 string encoder/decoder cannot convert Chinese/Japanese/Korean etc. strings

Open jasoncheng7115 opened this issue 2 years ago • 2 comments
trafficstars

Which tool is impacted? Base64 string encoder/decoder

To Reproduce Enter Base64 string encoder/decoder, enter text (Chinese/Japanese/Korean, etc.) in the string to encode field.

Expected behavior Base64 of string field will disappear.

Screenshots image

Configuration (please complete the following information):

  • Device: Macbook Pro 2020
  • OS: macOS 12.5.1
  • Browser: Chrome
  • Version 113

jasoncheng7115 avatar May 18 '23 05:05 jasoncheng7115

Windows. btoa does not support ANSI type text encoding I added window. btoa (unescape (encodeURIComponent (str))); And decodeURIComponent (escape (window. atob (str)); #732

lemon8866 avatar Nov 08 '23 05:11 lemon8866

Hi @jasoncheng7115 and @CorentinTh, fixed in #905

sharevb avatar Feb 25 '24 13:02 sharevb

Solved in #905

CorentinTh avatar May 22 '24 10:05 CorentinTh