Tevfik Karagülle wrote:
I have a couple of console mode perl scripts processing information
from Active Directory fields and group names from windows APIs. I
observe odd output when those information contains special/foreign
characters.
Any ideas about how to make sure that a console application treats
information from active directory calls/windows apis correctly?
Best regards,
Tev
I've had toubles with that as well, but it seems to work best for me,
when I send output to a file, then open the file in notepad or something.
I also added the following to my standard code:
`chcp 65001`; # change the dos window code page to display correctly
(This helps a bit)
use open ':utf8';
binmode(STDOUT, "utf8");
Note: also switch my console font to "Raster Font" as was advised on
some windows help page along with using chcp to change the code page.
But still the results are best if I send the data to a file then look at it.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs