1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

fix encoding non-ascii characters in detected face names

This commit is contained in:
Igor Rzegocki 2021-07-24 01:28:58 +02:00
parent d2d1472763
commit 14b64e31fa
No known key found for this signature in database
GPG Key ID: DBF5E35526B27548

View File

@ -278,7 +278,7 @@ export class MetadataLoader {
} else if (regionRoot.Area && regionRoot.Name && regionRoot.Type) {
const regionBox = regionRoot.Area.value;
name = regionRoot.Name.value;
name = decodeURIComponent(escape(regionRoot.Name.value));
type = regionRoot.Type.value;
box = createFaceBox(regionBox.w.value,
regionBox.h.value,