Re: [Firebird-devel] isc_arg_string in status vector
On 3/2/22 05:17, Jiří Činčura wrote: >> 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. > > That's sad. I'm facing exactly that now with isc_create_database. :( > I was tracking this issue together with an intl refactor, but it's dormant for some time. I'll come back to it some time. Adriano Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] isc_arg_string in status vector
> 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. That's sad. I'm facing exactly that now with isc_create_database. :( -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] isc_arg_string in status vector
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
Re: [Firebird-devel] isc_arg_string in status vector
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. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] isc_arg_string in status vector
Jiří Činčura wrote 28.02.2022 11:10: 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? It's encoding should match dpb_lc_ctype setting. isc_dpb_utf8_filename doesn't imply utf8 lc_ctype. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
[Firebird-devel] isc_arg_string in status vector
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? -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel