in reply to Re: Save yourself, start all projets with UTF-8 encoding
in thread Save yourself, start all projets with UTF-8 encoding
Source code should be printable ASCII. Which is, of course, a subset of UTF-8.
It should be printable ASCII because not everyone who wants of needs to hack on it will have font support for weirdo characters. YOU might not have support for weirdo characters all the time - if, for example, it all goes wrong and you have to fix stuff using the crappy ssh client on your phone. If you need non-ASCII text in your application, then it should be corralled into language-specific ghettoes: templates or resource files.
In fact, even if your application only needs to work in ASCII-compatible languages (the only two I can think of are English and Latin) then ideally text strings will still live in templates and resource files, for two reasons. First, seperation of concerns. Second, it'll let you more easily add other languages later.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Save yourself, start all projets with UTF-8 encoding
by tchrist (Pilgrim) on Apr 10, 2011 at 03:11 UTC | |
by educated_foo (Vicar) on Apr 10, 2011 at 04:23 UTC | |
by DrHyde (Prior) on Apr 11, 2011 at 09:45 UTC | |
by jdporter (Paladin) on Apr 11, 2011 at 14:32 UTC | |
by DrHyde (Prior) on Apr 12, 2011 at 10:28 UTC | |
by tchrist (Pilgrim) on Apr 13, 2011 at 04:12 UTC | |
| |
by jdporter (Paladin) on Apr 12, 2011 at 13:19 UTC |