summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sal/rtl/bootstrap.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/bootstrap.cxx b/sal/rtl/bootstrap.cxx
index d3dadcb50d1c..b348c983252c 100644
--- a/sal/rtl/bootstrap.cxx
+++ b/sal/rtl/bootstrap.cxx
@@ -517,7 +517,7 @@ bool Bootstrap_Impl::getValue(
#endif
#ifdef IOS
if (key == "APP_DATA_DIR") {
- const char *app_data_dir = [[[NSBundle mainBundle] bundlePath] UTF8String];
+ const char *app_data_dir = [[[[NSBundle mainBundle] bundlePath] stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding] UTF8String];
rtl_uString_assign(
value, rtl::OUString(app_data_dir, strlen(app_data_dir), RTL_TEXTENCODING_UTF8).pData);
return true;