It sounds like you are running in circles because windows has some loosely (un)coupled things all going on that contribute to you getting different codes from what you want.

I didn't hear what kind of text editor you are using but I guess it is something running on windows, subject to all kinds of windows front-end processing and maybe munging of the clipboard even.

I think if you can deal with it, you will be a lot happier if you use a programmer's editor, best would be vim or xemacs. With XEmacs I would recommend installing it from within cygwin along with X. When you type startx you will get a nice scrollable shell and then type xemacs and you get a nice multi-encoding programmable editor. (I don't think it has unicode though someone tell me). I just tried XEmacs the windows version on win98 and it suddenly forgot how to do ediff (file comparison) but maybe you will like it. Anyway, I almost always use XEmacs on linux and generally have been able to deal with files in other encodings people throw at me easily (set buffer encoding in the Mule system multilingual menu).

Anyway I know it is possible to program in windows having used codewarrior a bunch some time ago, but even now doing wxperl I feel like someone is tying me up in ropes unless I use unix tools. Hope you solve the problem, you might like to post to a Chinese mailing list.


In reply to Re^4: Unrecognized character in source code by mattr
in thread Unrecognized character in source code by biofeng918

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.