<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Peter,</p>
    <p>there isn't any issue in your build. It is just that PROJ returns
      UTF-8 encoded strings and that the typical Windows console isn't
      configured to display UTF-8. Cf
<a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/57131654/using-utf-8-encoding-chcp-65001-in-command-prompt-windows-powershell-window">https://stackoverflow.com/questions/57131654/using-utf-8-encoding-chcp-65001-in-command-prompt-windows-powershell-window</a>
      or similar issues</p>
    <p>Even<br>
    </p>
    <div class="moz-cite-prefix">Le 05/04/2023 à 23:44, Peter Townsend
      via PROJ a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMQBGmVQeSdhy6XhDnT5ZVcJAzDEpncnLTePuqxaXr=NzUFDyg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>I've got a bit of an annoyance with my windows proj build.
          Hopefully it's not too hard to resolve as the world of
          char/wchar_t/etc. isn't something I'm terribly familiar with.</div>
        <div><br>
        </div>
        <div>Take for example the area of use of EPSG:23031. On Linux
          it's fine, but on windows there's a unicode issue.</div>
        <div><br>
        </div>
        <div>PJ* crs = proj_create(m_ctxt, "EPSG:23031");<br>
          ASSERT_NE(crs, nullptr);<br>
          ObjectKeeper keeper_crsH(crs);<br>
          <br>
          double w, s, e, n;<br>
          const char* a;<br>
          proj_get_area_of_use(m_ctxt, crs, &w, &s, &e,
          &n, &a);<br>
        </div>
        <div><br>
        </div>
        <div>Contents of a:</div>
        "Europe - between 0°E and 6°E - Andorra; Denmark (North Sea);
        Germany offshore; Netherlands offshore; Norway including
        Svalbard - onshore and offshore; Spain - onshore (mainland and
        Balearic Islands); United Kingdom (UKCS) offshore."<br
          clear="all">
        <div><br>
        </div>
        <div>Is there a simple thing I'm overlooking in the build
          process that might clear up the encoding goof? Or do I need to
          do some bending over backwards with character manipulation?</div>
        <div><br>
        </div>
        <div>This is the command line I'm using to build this example:</div>
        <div>cmake -DBUILD_SHARED_LIBS=ON
          -DCMAKE_TOOLCHAIN_FILE=C:\dev\vcpkg\scripts\buildsystems\vcpkg.cmake
          ..<br>
          cmake --build . --config Debug -j 8<br>
        </div>
        <div><br>
        </div>
        <div>Thanks!</div>
        <span class="gmail_signature_prefix">-- </span><br>
        <div dir="ltr" class="gmail_signature"
          data-smartmail="gmail_signature">
          <div dir="ltr">
            <div>Peter Townsend<br>
            </div>
            Senior Software Developer<br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
PROJ mailing list
<a class="moz-txt-link-abbreviated" href="mailto:PROJ@lists.osgeo.org">PROJ@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/proj">https://lists.osgeo.org/mailman/listinfo/proj</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>