Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-05-26
00:10 • Closed ticket [909155ffff]: Adding special Hungarian characters to ::http::formM... artifact: 26043c909e user: hobbs
2004-03-04
16:41 • Ticket [909155ffff]: 4 changes artifact: d53b3c6a0b user: dkf
2004-03-03
16:23 • New ticket [909155ffff]. artifact: 0682c366a0 user: csan

Adding special Hungarian characters to ::http::formMap array

Closed / Invalid909155ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-03-03 16:23:21
Here's a quick and dirty hack to enable conversion of
"ő", "Ő", "ű" and "Ű" letters (necessary to be able to
use them with tkchat.tcl for example):

In line 50 of http.tcl, 

- array set formMap { " " + \n %0d%0a }
+ array set formMap { " " + \n %0d%0a "ő" %f5 "Ő" %d5
"ű" %fb "Ű" %db }
dkfplain2004-03-04 16:41:37
Logged In: YES 
user_id=79902

This is only a partial solution (e.g. the € (euro) currency
symbol isn't handled correctly either.)  Instead, we need a
different technique that can transfer *all* UNICODE characters.
hobbsplain2004-05-26 00:10:38
Logged In: YES 
user_id=72656

formatQuery / mapReply is used for x-url-encoding only,
which only supports 1-byte chars.  This seems to work in
tkchat already (at least the '\365' aka 0xf5 char does.

If you wanted to support any general sequence easily, just
add a variable trace to 'formMap' that adds the element if
it doesn't exist.  However, I can't find a legal use case
for this, so I'm not adding it now.
Log in (anonymous is fine) to add a comment.