We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f4613c commit d26348fCopy full SHA for d26348f
src/osgPlugins/las/ReaderWriterLAS.cpp
@@ -8,6 +8,7 @@
8
#include <osgDB/FileUtils>
9
#include <osgDB/fstream>
10
#include <osgDB/Registry>
11
+#include <osgDB/ConvertUTF>
12
13
#include <iostream>
14
#include <iomanip>
@@ -53,7 +54,11 @@ class ReaderWriterLAS : public osgDB::ReaderWriter
53
54
55
try
56
{
- pdal::Option las_opt("filename", fileName);
57
+ std::string inFile = fileName;
58
+#ifdef OSG_USE_UTF8_FILENAME
59
+ inFile = osgDB::convertStringFromUTF8toCurrentCodePage(inFile);
60
+#endif
61
+ pdal::Option las_opt("filename", inFile);
62
pdal::Options las_opts;
63
las_opts.add(las_opt);
64
pdal::PointTable table;
0 commit comments