in reply to Re: unknown character in between text
in thread unknown character in between text
Do not use this pragma for anything else than telling Perl that your script is written in UTF-8.
It does not magically transform your arbitrarily encoded input into equally arbitrarily encoded output.
What we see here is Unicoded input (two byte wide), containing the bytes (in hex) C2 and A7. Upon output, somehow the unicode-ness of the characters was lost (we can only guess how that happened, as no code is provided) and we now see two characters, one being  (which is ASCII hex C2) and the other being § (which is ASCII hex A7).
use utf8 is unlikely to solve this problem.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor usele²ss variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: unknown character in between text
by lidden (Curate) on Sep 17, 2011 at 20:48 UTC | |
by CountZero (Bishop) on Sep 18, 2011 at 08:35 UTC |