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. |