LibreOffice Module unotools (master) 1
Functions
defaultencoding.cxx File Reference
#include <sal/config.h>
#include <unotools/configmgr.hxx>
#include <unotools/defaultencoding.hxx>
#include <officecfg/Office/Linguistic.hxx>
#include <officecfg/Setup.hxx>
#include <officecfg/System.hxx>
Include dependency graph for defaultencoding.cxx:

Go to the source code of this file.

Functions

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

Function Documentation

◆ utl_getLocaleForGlobalDefaultEncoding()

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.