Bugs item #442978, was opened at 2001-07-19 23:08
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=103152&aid=442978&group_id=3152
Category: Scripting: ADP
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: laurent riesterer (riesterer)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unicode support in ns_puts with nds8x
Initial Comment:
Under nsd8x, using ADP pages, if you output characters
using 'ns_puts', the UTF-8 string is not converted
back.
Example:
<% ns_puts "���" %>
will not produce the expected "���" on the HTML
page, but a string like "�ĩɩ�"
Quick hack to fix the problem:
see the attached file. I did not take the time
to do a clean patch as I did not change the
Makefile to enable compilation on with Tcl 7.6
(as the function doesn't exist it requires a
conditional compilation, but there is not flag
telling if where are compiling for 7.6 or 8.x)
Performance:
the convertion as an impact on performance as it
remove the 'direct memcpy' of the string, but
it is the only way to have correct output.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=103152&aid=442978&group_id=3152