I only see two problems. 1) They don't handle the few characters that are in Windows-1252 but not Latin-1. 2) They don't handle the trailing "\0\0" that is needed on the end of wide strings. (1) certainly hasn't bothered me enough to jump through other hoops very often. (2) can be a real problem in some situations and no problem at all in others.

Oh, and problem (1) that I also mentioned regarding my versions isn't actually a problem for the UTF-18LE / UTF-8 versions; it is just a problem with "ASCII" versions (which really convert to/from Latin-1), now that I think of it.

- tye        


In reply to Re^4: Win32::API and CreateProcessWithLogonW (pack) by tye
in thread Win32::API and CreateProcessWithLogonW by slloyd

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.