[Liblas-devel] UNICODE

Mateusz Loskot mateusz at loskot.net
Mon Nov 17 14:27:28 EST 2008


Howard Butler pisze:
> 
> On Nov 17, 2008, at 12:57 PM, Mateusz Loskot wrote:
> 
>> Neil Woodhouse pisze:
>>> Hello,
>>>     I wondered whether someone could make a comment on UNICODE
>>> compliance for either the code base or the LAS format itself? I did not
>>> find too much on the liblas WIKI site.
>>
>> Neil,
>>
>> AFAIU, the LAS specification does not discuss Unicode usage.
>> The LAS specification clarifies that characters in string data are of 
>> single-byte length, so ie. the file signature "LASF" is 4 bytes long.
>>
>> This is all I know about it.
> 
> Additionally, the C API uses narrow strings everywhere, and no wstrings 
> are used for file names -- ruling out unicode file name support.
 > libLAS
 > could be updated to support unicode filenames, I think.

Hobu,

I don't see any problem with adding new versions of Open and Create 
functions accepting wide-char strings:

http://liblas.org/svn/trunk/include/liblas/liblas.hpp

It should do the job.

I can do it but later, in 2-3 weeks. Now, I'm in rush, movig to London, etc.

> "Full unicode 
> support", whatever that might mean, isn't going to be possible because 
> the 1.X specifications of LAS say nothing about it and practically limit 
> it in their description.

Yes, I agree.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org


More information about the Liblas-devel mailing list