On Nov 5, 2015, at 3:54 PM, [email protected] wrote:
> 
> And "decent" is a relative term.

No, it’s a value judgment.  I judge that a text editor that can’t handle UTF-8 
is indecent. :)

> ;// Temp Tol ±°C         ;<-- Ansi display :)
> ;// Temp Tol [xB1][xB0]C ;<-- UTF-8+BOM display :(

That isn’t a conversion from ANSI to UTF-8, it’s just sticking a BOM on the 
front of an ANSI file.  The proper encoding of plus-minus + degrees would be 
[C2][B1][C2][B0].  Four bytes, not two.

If you can’t work out how to get your text editor to do this conversion, the 
iconv tool you can install with Cygwin will do it, via the following command:

   $ iconv -f MS-ANSI -t UTF-8 < original-file > new-file

The new file should be considerably larger than the old, since every 
single-byte ANSI code point over 127 will be encoded by 2-4 bytes in UTF-8.
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to