LibreOffice Module unotools (master) 1
Functions
defaultencoding.hxx File Reference
#include <sal/config.h>
#include <unotools/unotoolsdllapi.h>
#include <rtl/ustring.hxx>
Include dependency graph for defaultencoding.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

UNOTOOLS_DLLPUBLIC OUString utl_getLocaleForGlobalDefaultEncoding ()
 Determines which locale should be used by default in filters when importing non-unicode strings. More...
 

Function Documentation

◆ utl_getLocaleForGlobalDefaultEncoding()

UNOTOOLS_DLLPUBLIC OUString utl_getLocaleForGlobalDefaultEncoding ( )

Determines which locale should be used by default in filters when importing non-unicode strings.

This value should be used when the file does not explicitly define encoding of 8-bit strings. It is defined by officecfg::Office::Linguistic::General::DefaultLocale, or when it's not set, officecfg::Setup::L10N::ooSetupSystemLocale, and is typically mapped to a corresponding Windows codepage by filters.

Returns
A BCP-47 language tag string.

Definition at line 18 of file defaultencoding.cxx.

References Translate::get(), utl::ConfigManager::IsFuzzing(), and result.