Unicode revisit - chart file paths
Hi Mike!
I've read in a couple other posts that GlobalMapper doesn't handle Unicode yet. How difficult would it be to add a GM_LoadLayerListExW() function? Instead of providing a const char*, a const wchar_t* would be used? This would mostly be to handle the windows long file paths, which could be unicode.
Mahalo!
Chris
I've read in a couple other posts that GlobalMapper doesn't handle Unicode yet. How difficult would it be to add a GM_LoadLayerListExW() function? Instead of providing a const char*, a const wchar_t* would be used? This would mostly be to handle the windows long file paths, which could be unicode.
Mahalo!
Chris
Comments
-
Chris,
It would be easy enough to add a function that took a Unicode string, but internally it would just get converted to a multi-byte string in the current system code page and passed to the normal non-Unicode load function. A lot of the low-level libraries that work with individual formats expect names as non-Unicode strings. Do the filenames that you want to work with not work when expressed as a non-Unicode string?
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.bluemarblegeo.com/products/global-mapper.php -
Hi Mike!
We have tried to a few tricks, but ended up doing exactly as you had mentioned. Converting the wide string to a "local" 8-bit string seemed to do the trick.
Mahalo!
Chris
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 636 GM Script Language
- 54 User Scripts
- 114 GPS Features
- 417 Projection Questions
- 825 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 912 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 569 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 238 How I use Global Mapper
- 107 Global Mapper Forum Website