Extended ASCII characters in Tcl variables (e.g. headings and labels), for
example � (eacute, \xE9) are rendered in HTML pages and in server.log as
é, \xC3 \xA9, � as è \xC3 \xA8, etc. Same "leadin" A-tilde for all the
seven or so accented characters in the \xC0 - \xFF range in the page. The
same characters originating in columns in Oracle tables and displayed on
the same HTML page are rendered correctly. Same situation for several
different Tcl programs written at different times. Only happens with
ns_return, does not happen when text is written to a file (puts). The
second character is the correct one, minus 64-decimal.

HTML numeric entities, e.g. « (guillemet gauche, �), rendered « (\xC2
\xAB).

A workaround is to regsub the extended characters to HTML character
entities (é etc.) just before ns_return 200 text/html $rslt

Environment: AOLsever 3.4.2, nsd8x. Solaris 7 x86. Text editor: vi. Same
results with IE5.5, Netscape 4.73 after rebooting Windows; also written
this way to server.log. This did not happen when running these scripts
under AOLserver 2.3.3

Answers and suggestions on how to approach both welcome.

Eric Lee

Reply via email to