lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Oct 14, 2013 at 11:13 AM, Romulo <romuloab@gmail.com> wrote:
> I believe the syntax for iconv is iconv( tocharset, fromcharset),
> thus: iconv.new( 'utf-8', 'latin1' ) instead of iconv.new( 'latin1',
> 'utf-8' ).


That's correct. Lua-iconv emulates the argument order of POSIX iconv_open().


-- 
Alexandre Erwin Ittner - alexandre@ittner.com.br
OpenPGP pubkey 0x0041A1FB @ http://pgp.mit.edu