Strange control characters when reading documentation through a pager

Login to reply  Page: « < 1 of 1 > »
12 Feb 2009 - 18:401058
Strange control characters when reading documentation through a pager
Hello,

I see strange control characters when reading some documentation such as "coding.txt" through a pager. Here is an example.

Quote:

If you<92>re a great game-player and have some terrific ideas about how a MUD should work, but don<92>t know how to code, you should either learn or find a good coder who can join your team. Don<92>t assume that you can get away with running a MUD without knowing C <96> you can<92>t. Not for very long, anyway.


This is using the "less" pager on Debian stable. (etch) One workaround seems to be

Quote:

iconv -f cp1252 -t utf-8 coding.txt | less


but if anybody knows of a better solution please share.

By the way great work with TBA!


18 Feb 2010 - 10:172359
Here's a fixed copy of the docs, they'll be included with the next release as well.
http://dgscript.sytes.net/axanon/tba-3.61-docs-fixed.tar.gz

-Ax


19 Feb 2010 - 03:512364
Thanks, added for next release. Though when I did an SVN diff it didn't recognize your changes.


__________________
Rumble
The Builder Academy
tbamud.com 9091
19 Feb 2010 - 23:232370
svn is blind to character encoding (or rather, autodetect it). It has to be, to be able to function across platforms.

Apparently the platform used by the OP is strictly utf-8, while the files are saved with a dos editor, or in some other fashion, to become cp1252 (windows) encoded. iconv is one way of solving it. It is uncertain if this will break the code for other people, on other platforms. Also, it is hard to fix and save in svn.


__________________
You know who I am.
Login to reply  Page: « < 1 of 1 > »