NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Tuesday July 08, 2008
UTF8 perldoc Rant!
Man this is annoying, I cut and paste code form a SYSNOPSIS to test a module for the first time and come to find out that my single quotes aren't single quotes and my dashes aren't dashes... This definitely doesn't seem like the right behavior for any text that is indented (ie code samples) I don't care about the rest of the text, make it pretty and all, but leave the characters in code sample's alone!
"’" used for single quotes ('), "−" used for dashes (-)
As I was writing this I went and changed Terminal -> Preferences -> Advanced -> International -> Character Encoding from "Unicode (UTF-8)" to "Western (ISO Latin 1)" and its no longer an issue (the original characters are being used throughout perldoc's output)
So the question is, is this a problem with perldoc or a just a problem with Terminal.app? And if it is perldoc, should I submit a bug?
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.