On 28/02/2022 07:17, Alex Peshkoff via Firebird-devel wrote: > On 2/28/22 13:10, Jiří Činčura wrote: >> Hi *, >> >> If I get pointer to a string in isc_arg_string in status vector the >> encoding is UTF8 if isc_dpb_utf8_filename was specified and >> ANSI/system charset when isc_dpb_utf8_filename was not specified? >> > > Data in status vector should be according to attachment charset and not > affected by isc_dpb_utf8_filename. > If that's not so then it should be a bug. > > ps.In some cases error may happen when trasliterating UTF8 line to > attachment charset. In that case strig willl be returned is UTF. >
But before attachment is done that does not happen and strings are returned as is (for example, error about non-existent file in Windows ANSI encoding). To convert charsets, database must be opened currently. Adriano Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel