in reply to Re: Unrecognized character in source code
in thread Unrecognized character in source code
Please tell us what font you have selected. And do you have one of the Chinese IME's active? And is the source file Unicode encoded?
Unfortunately, Unicode has more characters than anyone can handle. Lots of characters can look the same. If I use the WinXP character map program to search for "equals" it shows three different characters:
U+003D = = Normal equal sign
U+FF1D = = Fullwidth equals sign
U+F366 ﹦ ﹦ Small equal sign
Only the first of these is what Perl will understand.
A couple more characters that look somewhat similar are:
U+2550 ═ ═ Box Drawings Double Horizontal
U+3013 〓 〓 Geta Mark
And I played around a bit and found that Windows will freely convert the fullwidth equals to a normal equals. But Perl will continue to see them as different.
Anyway, check what font you are using, and perhaps save the source once as non-Unicode text? (File / SaveAs / Set Encoding to 'ANSI' ) 行 不 行 吗 ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Unrecognized character in source code
by biofeng918 (Acolyte) on Oct 19, 2004 at 03:21 UTC | |
by mattr (Curate) on Oct 21, 2004 at 13:33 UTC |