#include <vlc/vlc.h>
#include <vlc_meta.h>
+#include <vlc_charset.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
if( lua_isstring( p_state, t ) ) \
{ \
psz_value = lua_tostring( p_state, t ); \
- msg_Dbg( p_this, #b ": %s", psz_value ); \
- input_item_Set ## b ( p_input, psz_value ); \
+ EnsureUTF8( psz_value ); \
+ msg_Dbg( p_this, #b ": %s", psz_value ); \
+ input_item_Set ## b ( p_input, psz_value ); \
} \
lua_pop( p_state, 1 ); /* pop a */
TRY_META( "title", Title );