> Hi > > I have the following problem : > > I use perl to treat result of the "Net user /domain" command under NT, the > output of this command contain special character (Theta, , a,...) because the > domain controller is under Windows NT French and that username contain this > sort of character. > > My script give to me result where character are not correctly interrpreted, > for exemple "Theta" become " ' " and so. > > The more strange is that the ouptut is correct when I redirect it on the > screen but not when I send it to a file. The problem may be (just like we have here in Central Europe) that the system uses two different charsets. One for windowed application and other for the command prompt. (OEM vs. ANSI, something like that) Look into registry to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage If you have a different value in "ACP" and "OEMCP" you will need to convert the data between those two charsets occasionaly. CPAN will contain a module for this I'm sure. Jenda == [EMAIL PROTECTED] == http://Jenda.McCann.cz == 28th of March I'll march out of the "army" I'll be free so if you want me ... _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/activeperl
