r, encoded in UTF-8 is 0xE2 0x94 0x81.
Try changing the charset declaration to match the
actual unicode encoding that it is using. Not sure what
it is but possibly UTF-16.
cheers,
raf
___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32
Roger Upole wrote:
> raf wrote:
> > Roger Upole wrote:
> >>
> >> win32security.LookupAccountName will give you the complete sid for a
> >> username.
> >
> > if you look at the code i supplied, you'll see that that is
Roger Upole wrote:
> raf wrote:
>
> > so my questions are:
> > did the sid for the account name ever uniquely identify the user?
>
> Yes. In fact it's the only way, since you can change the login name of an
> account.
>
> > how do i obtain the &q
t
want or need to log the user in (even if i knew their passwords!)
so i have no such token and i can't use that function.
cheers,
raf
#!/usr/bin/env python
'''This module provides functions for obtaining the current user's name
and any user's home directory. They don&
ys, os
if sys.platform == 'win32':
_tz = os.getenv('TZ')
if _tz is not None and '/' in _tz:
os.unsetenv('TZ')
removing the TZ environment variable entirely wasn't an option as it is needed
by cygwin programs such as ls.
c
Vernon Cole wrote:
> Dear raf:
> Yes, time zones in the python time module are known to be somewhat messed
> up. Mark Hammond and I went several rounds while trying to create a test
> for the "python time" capabilities in adodbapi. When a test worked for me
> in Nor
doesn't have the RealTimeIsUniversal=1 registry entry so it knows
that the hardware clock is in the local timezone. so there's no
confusion there.
any help would be appreciated.
cheers,
raf
#!/usr/bin/env python
import time
print('time.timezone = %r (should be -36000)' % time.ti