[vlc-devel] [PATCH 1/2] lua: add a guess_encoding function to convert Latin1 to UTF8
Edward Wang
edward.c.wang at compdigitec.com
Tue Aug 27 19:23:22 CEST 2013
On Tue, Aug 27, 2013 at 7:20 PM, Rémi Denis-Courmont <remi at remlab.net> wrote:
> That is falling back to Latin-1 encoding (FromLatin1()) from UTF-8 encoding
> (strdup()) if the sequence pass UTF-8 validation (IsUTF8()).
>
> (Note that any byte sequence is valid Latin-1.)
>
IsUTF8() checks for UTF8 validation, correct?
Therefore, if IsUTF8() says that the string is valid UTF-8, we should
be able to use it as valid UTF8.
If not, then I think that there is a bug in IsUTF8().
Regards,
Edward Wang
More information about the vlc-devel
mailing list