Thread [Win32] LoginName Codepage (3 answers)
Opened by Kean at 2015-10-15 11:54

Kean
 2015-10-15 12:45
#182621 #182621
User since
2004-08-18
463 Artikel
BenutzerIn

user image
Danke dieser Artikel hat mir sehr weiter geholfen!

Mein Problem habe ich wie folgt gelöst:

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use strict;
use warnings;
use utf8;
use Tk;
use Encode;

my $mw = Tk::MainWindow->new();

my @charsets = Encode->encodings(':all');

for (@charsets)
        {
        $mw->Label(-text => "$_:".encode($_, Win32::LoginName()))->pack();
        }
        
MainLoop;


Danach musste ich nur noch schauen in welcher Codierung das Ergebnis richtig war :-)

View full thread [Win32] LoginName Codepage