Browse Source

feat(nocodb): add utf8ify

pull/6824/head
աɨռɢӄաօռɢ 11 months ago
parent
commit
5ea1228ab0
  1. 4
      packages/nocodb/src/helpers/stringHelpers.ts

4
packages/nocodb/src/helpers/stringHelpers.ts

@ -3,3 +3,7 @@ import crypto from 'crypto';
export function randomTokenString(): string {
return crypto.randomBytes(40).toString('hex');
}
export function utf8ify(str: string): string {
return Buffer.from(str, 'latin1').toString('utf8');
}

Loading…
Cancel
Save