Sujet : Re: ANNOUNCE: Excel file format reader/writer package OOXML 1.9 released
De : ralfixx (at) *nospam* gmx.de (Ralf Fassel)
Groupes : comp.lang.tclDate : 06. Dec 2024, 11:01:01
Autres entêtes
Message-ID : <ygaikrx871e.fsf@akutech.de>
References : 1 2 3 4 5 6
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
*
berg@typoscriptics.de (TorstenBerg)
| thanks for your ideas wrt. the encoding. I will investigate further and
| see whether I can find the culprit. The phenomenon is found on a Windows
| machine running a script being utf-8 with Tcl 8.6. So, maybe this
| combination is already bad (it probably is) since Windows will expect
| the Tcl file tobe in cp1252 or so ...
Definitely:
https://www.tcl.tk/man/tcl/TclCmd/source.htm SYNOPSIS
source fileName
source -encoding encodingName fileName
[...]
The -encoding option is used to specify the encoding of the data stored
in fileName. When the -encoding option is omitted, the system encoding
is assumed.
See also Harald's response (always specify the encoding with 'source'
when the file is not ASCII). You could use the \u-Notation if there are
only a few Unicode characters in the file (with many, the file becomes
unreadable IMHO).
R'