decode and encode for base64 with webworker suitable for chinese usage import { decoder, encoder } from 'base64-latin1'; // use decoder for decode base64 string // use encoder for encode string to base64