[RS] was asked the following, and herewith passes the questions on to the community: ---- The story goes like this: I have a set of 8-bit BDF (or PCF) fonts which are almost full in the sense that nearly 250 encodings are occupied by glyphs. (Those not occupied are "forbidden" positions like \x00 (NULL), \x09 (TAB), \x0a (CR), \xa0 ( ) etc.) Older versions of Tcl/Tk in tandem with older X distributions displayed all characters (in tk widgets) perfectly. Newer versions of Tcl/Tk (and newer X distributions) do not display certain characters correctly, for example, I am always getting a display of \x01 as \x01 (and not as the glyph defined in the BDF files at encoding 1). If one has to use some kind of non-system encodings (like Japanese, Korean, Hebrew etc.), one may use "[encoding] convertfrom" or "encoding convertto" commands. "[fconfigure] -encoding" demands a channel to read/write strings in specified encodings. "encoding system", on the other hand, is something that may change the overall application behavior. But my problem seems to be fundamentally different. I have a string to insert in a text widget / label / button, that contains \x01 in the straightforward 8-bit encoding and I want to see the corresponding glyph defined in the font files and not the escape sequence \x01. Is there a way to do this? ---- [RS]: First idea is that one of the DOS codepage encodings delivered with Tcl since 8.1 can help. Here is [a little code page browser] that displays the characters 0x00..0xFF of the selected encoding (double-click in the listbox). ---- But from what I see, character positions 0x00..0x1F have no glyph in any encoding.. ---- [DKF]: So Tcl doesn't know the encoding that the font is using. Luckily, writing a new encoding for 8-bit fonts is not too hard, and once you've done that, all you need to do is to drop the ''*.enc'' file into the right directory in your Tcl distribution and you should be able to use the font sensibly. But the first thing to do is to work out the correspondence between the glyphs in your font(s) and the glyphs in UNICODE, which you have to do yourself. (You can discover what the unicode characters actually are by downloading the right PDF from the Unicode Consortium website.''[[url?]]'') Once you've done that, you can write your encoding in much the same style as Tcl's existing ''enc'' files, though if you have the CVS distribution of Tcl you can also create the source to those files (in the ''tools/encoding'' directory) and use one of the programs in the ''tools'' directory to build the ''enc'' from it. ---- [Category Characters]