Help for this page

Select Code to Download


  1. or download this
    ## Why oh why does it try to modify the input!?
    my $uPath = encode( 'UTF-16LE', $_ = "\\\\?\\c:\\some\\path", 1 );
    
  2. or download this
    use Encode;
    
    ...
    
    print unpack 'H*', $uPath;;
    5c005c003f005c0043003a005c0073006f006d0065005c007000610074006800
    
  3. or download this
    HANDLE FindFirstFileW( LPCTSTR lpFileName, LPWIN32_FIND_DATA lpFindFil
    +eData )
    
    LPTCSTR => long pointer to (array of) TCHAR
    TCHAR   => wchar_t