v14.0.5-7
save a file in windows 1252 with umlaut characters
source the file in the fluidshell
umlauts will not display correctly.
as a work around save as utf8 encoding and source will display correctly.
Added the -c <CHARSET> option to the "source" command. Default value is UTF-8. User can pass in platform-default to use the platform's default file encoding
source -c platform-default <file>
Jonathan, please update the wiki page for the "source" command to add the -c option. Also, the -tx option is missing from the wiki page.
NAME
source - execute commands or SQL statements from a file
SYNOPSIS
source [OPTION...] FILE [ARGUMENT...]
source [OPTION...]
DESCRIPTION
Read and execute commands or SQL statements from FILE in the current shell environment.
If FILE is not supplied, source reads input from standard input.
OPTIONS
-c, --charset CHARSET
The character set to be used for encoding; supported values are: 'UTF-8' and 'platform-default', default to 'UTF-8'.
-e BOOLEAN
Echo FluidShell commands, default to 'true'.
-sc BOOLEAN
Stop on any exception occurred in a FluidShell command, default to 'false'.
-ss BOOLEAN
Stop on any exception occurred in an SQL statement, default to 'true'.
-tx {COMMIT | ROLLBACK | NONE}
Determine whether to commit or rollback all data changes, or do nothing, on an SQL exception when -ss is set to true and autocommit is turned off; default to 'NONE'.
See BOOLEAN VALUES section below for supported BOOLEAN values.
BOOLEAN VALUES
The followings are supported BOOLEAN values: 'true', 'false', 'yes', 'no', 'y', 'n', 'on', 'off', '1', '0'.
SEE ALSO
go
Jonathan, please update the wiki page for the "source" command to add the -c option. Also, the -tx option is missing from the wiki page.
NAME
source - execute commands or SQL statements from a file
SYNOPSIS
source [OPTION...] FILE [ARGUMENT...]
source [OPTION...]
DESCRIPTION
Read and execute commands or SQL statements from FILE in the current shell environment.
If FILE is not supplied, source reads input from standard input.
OPTIONS
-c, --charset CHARSET
The character set to be used for encoding; supported values are: 'UTF-8' and 'platform-default', default to 'UTF-8'.
-e BOOLEAN
Echo FluidShell commands, default to 'true'.
-sc BOOLEAN
Stop on any exception occurred in a FluidShell command, default to 'false'.
-ss BOOLEAN
Stop on any exception occurred in an SQL statement, default to 'true'.
-tx {COMMIT | ROLLBACK | NONE}
Determine whether to commit or rollback all data changes, or do nothing, on an SQL exception when -ss is set to true and autocommit is turned off; default to 'NONE'.
See BOOLEAN VALUES section below for supported BOOLEAN values.
BOOLEAN VALUES
The followings are supported BOOLEAN values: 'true', 'false', 'yes', 'no', 'y', 'n', 'on', 'off', '1', '0'.
SEE ALSO
go
One way to verify this fix is to pass in the JVM parameter -Dfile.encoding=<encoding> to use a different code page for file encoding and you can confirm the setting in Help > Support Information > Operating Environment.
For example, set -Dfile.encoding=Cp1252 and when using the -c platform-default option with the source command, umlaut characters should be handled correctly.
One way to verify this fix is to pass in the JVM parameter -Dfile.encoding=<encoding> to use a different code page for file encoding and you can confirm the setting in Help > Support Information > Operating Environment.
For example, set -Dfile.encoding=Cp1252 and when using the -c platform-default option with the source command, umlaut characters should be handled correctly.
Issue #10981 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build ADS 14.0.5-8 |
No time estimate |
1 issue link |
relates to #10990
Issue #10990FluidShell commands default file encoding to UTF-8 |
Added the -c <CHARSET> option to the "source" command. Default value is UTF-8. User can pass in platform-default to use the platform's default file encoding
source -c platform-default <file>