Revert : getPath should return a locale string as there is no constraint about it. Usual DB connections are done by _linphone_sqlite3_open in linphonecore.c that take a Locale (UTF8 convertion is done inside) But a special case is for CorePrivate::init in core.cpp where we call directly mainDb->connect that take a UTF8 string.