home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Practical Programming in Tcl & Tk (4th Edition)
/
TCLBOOK4.BIN
/
pc
/
exsource.old
/
15_1.tcl
< prev
next >
Wrap
Text File
|
2003-04-15
|
270b
|
14 lines
#
# Example 15-1
# MIME character sets.and file encodings.
#
proc Mime_SetEncoding {file charset} {
regsub -all {(iso|jis|us)-} $charset {\1} charset
set charset [string tolower charset]
regsub usascii $charset ascii charset
fconfigure $file -encoding $charset
}