It's a vt100 code which is interpreted when you print it on the screen but not when you print itinto a file.
OR
It's an extended character (above 127) which is properly displayed by your terminal emulator (using the right associated character table) but not when you write it to a file.
UPDATE :
Whatever the case you must understand that the character which is
displayed on your screen heavily depends on your screen configuration
(especially for char with a value above 127 = non pure 7bits ASCII)
You save/give to the screen a character code, then this character is interpreted either by your screen emulator either by your file viewer (maybe differently)
on my linux box this chr(132) display an invisible char...
So if your question is how to see the same char on the screen and in the file, the answer is :
display the file with an utility using the same configuration for
the screen setup.
The best solution to prevent this kind of problem, is to only use char < 128 (truely portable) and avoiding vt-100 codes which could be interpreted differently.
"Trying to be a SMART lamer" (thanx to
Merlyn ;-)
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.