check utf8
This commit is contained in:
parent
312726b384
commit
0c3ec3faa1
@ -12,7 +12,11 @@ const text = computed(() => {
|
||||
case 'base64':
|
||||
return toBase64(props.value);
|
||||
default:
|
||||
return fromAscii(props.value);
|
||||
try {
|
||||
return fromAscii(props.value);
|
||||
} catch {
|
||||
return 'Invalid Utf8';
|
||||
}
|
||||
}
|
||||
});
|
||||
function change(value: string) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user