problem with chinese text
Closed / Fixed218468ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:00:50
OriginalBugID: 632 Bug Version: 8.1a2 SubmitDate: '1998-05-25' LastModified: '1999-08-06' Severity: MED Status: Released Submitter: hershey ChangedBy: hobbs OS: All OSVersion: NA Machine: NA FixedDate: '1999-08-06' FixedInVersion: 8.1 ClosedDate: '2000-10-25' the problem is the encoding table. TCL 8.1 includes the ability to read a variety of input encodings, doing an on-the-fly conversion. for chinese text, gb2312 [simplified] and big5 [traditional] are the two I know of and have to work with. but neither works straight out of the box. Big 5 is repairable. GB is just plain bad. tcl8.1 and my app will load a Big5 doc and display it just fine, but won't save. I believe the problem is that the C code doesn't know to look in the ASCII encoding table to ASCII chars even though I said the encoding to use was big5. so I copied the ascii table into the big5 encoding file. worked great! tried the same thing with the gb2312 encoding file, but that was no improvement, just differently bad. fortunately, there's a 7.6/4.2 version of TCL which does gb2312 just fine. -- Clint Hyde "Give me a LispM or give me death!" -- anonymous Contact the I18N mailing list for better big5 encoding file. stanton 4/13/99: It turns out that gb2312.enc is correctly defined, but most people are actually using the "EUC-CN" encoding (a variant of gb2312 that includes ascii and adds 0x8080 to all gb2312 characters). I have added an euc-cn.enc encoding file. We may need to do further work on Tk if it turns out that fonts that claim to be gb2312 are actually euc-cn. Since Stanton's (4/99) changes, there have been no further comments for these encodings, so it was elevated to fixed. -- 08/06/1999 hobbs
welch Closed ticket [218468ffff].
[History diff]2000-10-26 08:22:17
dgp Ticket [218468ffff]: 3 changes
[History diff]2001-04-06 03:25:08
Log in (anonymous is fine) to add a comment.