Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2012-07-16
20:49 • Ticket [3543438fff] Encoding names don't match IANA versions status stil... artifact: 3cc53f18bc user: talvo
20:07 • Ticket [3543438fff]: 4 changes artifact: 5b2a793b76 user: dgp
2012-07-13
19:07 • Ticket [3543438fff]: 5 changes artifact: 0a5351f78e user: dkf
16:47 • Ticket [3543438fff]: 1 change artifact: bf53dbd4ad user: nijtmans
16:41 • Ticket [3543438fff]: 5 changes artifact: dd8882b2f1 user: nijtmans
08:18 • New ticket [3543438fff]. artifact: 379e920529 user: talvo

Encoding names don't match IANA versions

Open3543438fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 14 years ago
Descriptionplain2012-07-13 08:18:29
The encoding names used in Tcl (as returned by [encoding names]) don't match the official IANA encoding names - for instance, Tcl uses iso8859-1 while the IANA name is iso-8859-1. I'm not sure whether this is actually a bug or there's a good reason for it that I'm not aware of, but it makes attempting to match encoding names against those given by most real-world applications - for example, the charset used by web servers - a pain. (It's not too hard to work around, but the fact you need to know every charset which has the 'wrong' name, and which it should map to, is problematical.)
nijtmansplain2012-07-13 16:41:46
data_type - 360894

Java made the same change:
<http://www.websina.com/bugzero/kb/java-encoding-charset.html>
nijtmans Ticket [3543438fff]: 1 change [History diff]2012-07-13 16:47:30
dkfplain2012-07-13 19:07:35
This was meant to be the focus of the dkf-alias-encoding branch, but it's been a bit sidelined for the past few months.
dgpplain2012-07-16 20:07:16
Dup of 1374695 ?
talvoplain2012-07-16 20:49:14
Does seem to be a duplicate, yeah - I must've missed that when I searched before adding this one, sorry.
Log in (anonymous is fine) to add a comment.