What's the best way to save a dictionary to a file, so that I can load it later in Tcl on a different computer/system?
I don't think fconfigure $stream -translation binary; puts -nonewline $stream $dict
works if there's keys/values with unicode characters > \u00ff. Is "utf-8" encoding OK (to save disk space), or should I always use full "unicode"?
Dictionaries are new to me, but since their textual representation is that of a list with alternating keys/values, and a list is just a string with some extra syntax characters, maybe the question could've been "Safely save a string to file"?