From: <ja...@av...> - 2004-04-09 19:15:31
|
Thanks for this. I just checked in the first version of UTF-8 support for JOE. Display works, input is broken (you get control characters displayed until the full UTF-8 character is entered, then you have to hit refresh screen). Likely there are many bugs. Joe keeps the files in UTF-8 format internally. When UTF-8 mode is enabled, it will emit UTF-8 characters and keep track of character widths properly. Basically JOE can now do this: >I may want to edit a Latin-2 encoded file in a Latin-2 terminal. -asis mode >I may want to edit a UTF-8 encoded file in an UTF-8 terminal. -utf8 mode But it can not do these, but probably should: >I may want to edit a UTF-8 encoded file in a Latin-2 terminal. (Some > characters might not show up correctly, but those that are part of > Latin-2 must be shown properly.) >I may want to edit a Latin-2 encoded file in an UTF-8 terminal. I need to research conversion between byte-wide and UTF-8. Also, JOE can not do this: >when you save a file you have the choice to choose an encoding (latin-1, >utf-8 etc.). It seems like there must be UNIX command line utility which does this? >bye, >Egmont >Ps. Based on your email address, don't you happen to be the original >author of joe? Yes I am. |