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

Merge pull request #344 from ajgon/fix/face-detection-name-encoding

fix encoding non-ascii characters in detected face names
This commit is contained in:
Patrik J. Braun 2021-09-24 00:20:09 +02:00 committed by GitHub
commit 2f1c48ce02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,