|
From: | Gavin Smith |
Subject: | Re: Displaying characters in user's locale |
Date: | Sun, 2 Feb 2014 17:25:13 +0000 |
On Sat, Feb 1, 2014 at 8:11 AM, Eli Zaretskii <address@hidden> wrote: >> Date: Fri, 31 Jan 2014 21:33:39 +0000 >> From: Gavin Smith <address@hidden> >> Cc: Karl Berry <address@hidden>, address@hidden >> >> I've attached a patch which uses iconv as you suggested. I've tested >> it with the two files attached under both utf-8 and iso8859-1 locales. >> (I did this by, e.g. running "LANG=en_US.UTF8" to get a UTF-8 >> terminal.) I haven't been able to figure out how to get an ASCII-only >> terminal yet. > > Thank you for doing this. > > Allow me a few comments about the patch. > Here's an updated patch. To work the iconv module needs to be added from gnulib. A few test files are attached as well. To do - * Add more ASCII equivalent strings * Default encoding is set as UTF-8 - decide whether this is desired * Only convert one node at a time, when it is viewed? * Effect of changing length of nodes on tag table. It can cope with small changes, but there could be problems with long files with a lot of converted characters in them.
character-encoding.patch
Description: Text Data
iso8859_1.info
Description: Binary data
iso8859_7.info
Description: Binary data
utf8.info
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |