Subject: Re: Unicodes/Internationalization example - DN [1]


"Richard.Suchenwirth" <Richard.Suchenwirth@kst.siemens.de> - 03 Dec 1999 - comp.lang.tcl

 Nicolas Boretos wrote:
 > Does anyone have some "simple" directions on how to read and write
 > foreign (i.e. French..) characters, along with English in a Tk app.

 If it's French or a limited number of European languages only, selecting
 the appropriate ISO 8859-x encoding will suffice. Depends on your input
 files, of course. Just call
     fconfigure $f -encoding $enco
 AFTER opening and BEFORE reading a text file $f. For enco, use one of
 the available encodings ([encoding names] will tell which they are). For
 a file reader that auto-detects UTF-16 (all two-byte Unicodes, indicated
 by byte-order mark \uFEFF), see
 http://purl.org/thecliff/tcl/wiki/517.html
 --
 Schoene Gruesse/best regards, Richard Suchenwirth - +49-7531-86 2703
 RC DT2, Siemens Electrocom, Buecklestr. 1-5, D-78467 Konstanz,Germany
 -------------- http://purl.org/thecliff/tcl/wiki//Richard*Suchenwirth

Last modified
1999-12-10

(195.108.246.50)

Note: you are looking at
the snapshot of an old wiki
- much of this information
is likely to be very outdated