> I infer from the behavior that Mason does not specify its output to be > Unicode, thus it is treated as a byte string. XML::DOM, OTOH, almost > certainly specifies Unicode strings (required by the XML spec). By printing > XML::DOM's output, you force Mason's buffer to upgrade to Unicode. As quoted > above, Perl assumes in this circumstance that the string is ISO 8859-1. > Since that is not the case, high characters are mis-translated.
Thanks. Really, it is a cause of such behavior. > > All that said, I don't have much experience with Unicode, and I don't know > how to *fix* this. Maybe you want to ['use encoding "windows-1251";'][1]? > ['use encoding "windows-1251";'] works, but all output becomes in 'utf8'. All other pages of my site is in 'windows-1251' and I want this page be in the same copepage. > I recommend you read through [perlunicode][2] and maybe the [Encode man > page][3]. If you do get it worked out, please post your solution to the > list, I would love to know how you fixed it. As a temporary solution I use [print encode("windows-1251", $a);] instead [print $a;]. I understand that it is not good, but I dont know how to solve problem in a right way. Bye. Konstantin Stroikovsky ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users