src: fix ParseEncoding
This PR fixes ParseEncoding.
-
Remove pointer skip "utf-16LE" was parsed "UNKNOWN", this fixes to "UCS2" "utf-buffer" was parsed "BUFFER", this fixes to "UNKNOWN"
-
Add +1 check character length to
strncmp
for checking end of character "utf-16leNOT" was parsed "UCS2", this fixes to "UNKNOWN"
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines