import { TextEncoder , TextDecoder } from '@zxing/text-encoding' ; export function createCustomEncoder ( e ) { return new TextEncoder ( e , { NONSTANDARD_allowLegacyEncoding : true } ) ; } export function createCustomDecoder ( e ) { return new TextDecoder ( e ) ; }