[pdal] Non-English characters

pidgeon13 at googlemail.com pidgeon13 at googlemail.com
Wed Jan 17 02:17:48 PST 2018


I have included another piece of code, which is what I tried first using WideCharToMultiByte. Should this perform the conversion correctly?

Regards,

Stephen

Sent from Mail for Windows 10

From: Mateusz Loskot
Sent: 17 January 2018 10:09
To: pidgeon13 at googlemail.com
Cc: Andrew Bell; pdal at lists.osgeo.org
Subject: Re: [pdal] Non-English characters

See what the docs [1] say about the A in CW2A.

Meanwhile, you need to use WideCharToMultiByte [2] with CP_UTF8 code page.

[1] https://msdn.microsoft.com/en-us/library/87zae4a3.aspx
[2] https://msdn.microsoft.com/en-us/library/windows/desktop/dd374130.aspx


On 17 January 2018 at 11:02,  <pidgeon13 at googlemail.com> wrote:
> std::string sFilePath = CW2A(filepath, CP_UTF8);
>
>
>
> Regards,
>
>
>
> Stephen
>
>
>
> Sent from Mail for Windows 10
>
>
>
> From: Mateusz Loskot
> Sent: 17 January 2018 10:00
> To: pidgeon13 at googlemail.com
> Cc: Andrew Bell; pdal at lists.osgeo.org
> Subject: Re: [pdal] Non-English characters
>
>
>
> On 17 January 2018 at 10:31,  <pidgeon13 at googlemail.com> wrote:
>
>>
>
>> The user browses for a file in a dialog file browser, and I convert this
>
>> string to UTF-8
>
>
>
> How do you convert to UTF-8?
>
>
>
> Please, you need to show some code (one image for 1000 words).
>
>
>
> Best regards,
>
> --
>
> Mateusz Loskot, http://mateusz.loskot.net
>
>



-- 
Mateusz Loskot, http://mateusz.loskot.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20180117/0b4c0e0c/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: UTF-8 conversion.txt
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20180117/0b4c0e0c/attachment.txt>


More information about the pdal mailing list