[pdal] Non-English characters

Mateusz Loskot mateusz at loskot.net
Wed Jan 17 02:20:38 PST 2018


CUtils::toUtf8 looks fine to me

On 17 January 2018 at 11:17,  <pidgeon13 at googlemail.com> wrote:
> 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
>
>



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


More information about the pdal mailing list