[vlc-devel] [PATCH] UTF-16 chapter titles
Jean-Baptiste Kempf
jb at videolan.org
Sun Jul 3 19:36:40 CEST 2016
On 03 Jul, Francois Cartegnie wrote :
> Le 03/07/2016 à 19:15, Jean-Baptiste Kempf a écrit :
> > On 03 Jul, Donald Campbell wrote :
> >> This patch detects UTF-16 titles and copies their data with memcpy instead of strndup, then turns it into a UTF-8 passing string.
> >
> > Shouldn't you use iconv instead to do the conversion?
>
> FromWide ?
Nope. FromWide is Win32 specific.
FromCharset( "UTF-16LE", p_data, i_size ); is probably more like it.
But we need to be sure if it's UTF16 or UCS-2 :)
With my kindest regards,
--
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
More information about the vlc-devel
mailing list