[vlc-devel] [PATCH 1/2] lua: add a guess_encoding function to convert Latin1 to UTF8
remi at remlab.net
Tue Aug 27 16:27:11 CEST 2013
On Tue, 27 Aug 2013 16:14:55 +0200, Ludovic Fauvet <etix at videolan.org>
>> That's not true. It returns an empty string on error, which is clearly
>> different from success. Feel free to change it to return a proper error
>> or nil.
> Sorry but you're wrong.
No. You are. You can RTFS if you do not believe me.
> Using the following piece of code:
> src = vlc.strings.from_charset("ISO_8859-1", src)
> and the following UTF8 encoded input string:
> Le Lac des Cygnes (Piotr Ilitch Tchaïkovsky)
> It gives me the following result:
> Le Lac des Cygnes (Piotr Ilitch TchaÃ¯kovsky)
Yes, and so what?
> Where's my empty string?
There was no error, and there is no empty string. This is irrelevant.
Sent from my collocated server
More information about the vlc-devel