Subject | AW: [firebird-support] Use ISQL to insert special german characters |
---|---|
Author | Parzival |
Post date | 2015-06-04T15:01:19Z |
Hello Thomas,
the change of chcp did the trick.
Thanks
Niko
Von: firebird-support@yahoogroups.com
[mailto:firebird-support@yahoogroups.com]
Gesendet: Mittwoch, 03. Juni 2015 09:02
An: firebird-support@yahoogroups.com
Betreff: Re: [firebird-support] Use ISQL to insert special german characters
Niko,
'Parzival' parzival1969@... [firebird-support] schrieb am 02.06.2015
22:12:
I guess this is a matter of changing to a proper code page in the CMD shell
BEFORE running isql.
Try this in a DOS shell:
chcp (this gives you the currently active code page)
chcp 28591 (changes code page to ISO-8859-1, see also:
https://msdn.microsoft.com/en-us/library/windows/desktop/dd317756%28v=vs.85%
29.aspx)
isql <database> <user> <pwd> -ch ISO8859_1
insert into t1 (...) values ('ä');
select * from t1;
--
With regards,
Thomas Steinmaurer
http://www.upscene.com
Professional Tools and Services for Firebird
FB TraceManager, IB LogManager, Database Health Check, Tuning etc.
[Non-text portions of this message have been removed]
the change of chcp did the trick.
Thanks
Niko
Von: firebird-support@yahoogroups.com
[mailto:firebird-support@yahoogroups.com]
Gesendet: Mittwoch, 03. Juni 2015 09:02
An: firebird-support@yahoogroups.com
Betreff: Re: [firebird-support] Use ISQL to insert special german characters
Niko,
'Parzival' parzival1969@... [firebird-support] schrieb am 02.06.2015
22:12:
> Hello all,them
>
>
>
> for updating some tables at customers I create SQL scripts and execute
> with ISQL i parameter. This works perfect unless I have to insert germanof
> special characters like äöüß.
>
>
>
> The database is set to ISO8859_1.
>
>
>
> Even when I set the charset with charset for the command line parameter
> ISQL it still does not correctly write the ä etc. into the database.Do we talk about running isql on Windows?
>
>
>
> Any experience on this subject?
I guess this is a matter of changing to a proper code page in the CMD shell
BEFORE running isql.
Try this in a DOS shell:
chcp (this gives you the currently active code page)
chcp 28591 (changes code page to ISO-8859-1, see also:
https://msdn.microsoft.com/en-us/library/windows/desktop/dd317756%28v=vs.85%
29.aspx)
isql <database> <user> <pwd> -ch ISO8859_1
insert into t1 (...) values ('ä');
select * from t1;
--
With regards,
Thomas Steinmaurer
http://www.upscene.com
Professional Tools and Services for Firebird
FB TraceManager, IB LogManager, Database Health Check, Tuning etc.
[Non-text portions of this message have been removed]