in reply to Perl/Tk Font Weirdness

It might be a codepage issue. In ISO-8859-1 the characters "\x80" through "\x9f" are control characters. Microsoft's CP1252 uses them as graphic characters instead. Maybe try use encoding "cp1252";? http://www.awprofessional.com/articles/article.asp?p=169537&seqNum=3

Replies are listed 'Best First'.
Re^2: Perl/Tk Font Weirdness
by Dr. Mu (Hermit) on Nov 15, 2004 at 03:31 UTC
    Yup, the "use encoding cp1252';" works in Windows, and I get the n-dash I was after. But as tachyon points out below it's not portable, so no dice in Linux. Since this app gets ported to Linux later, I'll either have to be happy with the (already boldface) minus sign, or throw in some OS detection so the Windows port, at least, will look the way I want it to.