public function getLocaleAndEncoding()
{
// windows compatibility - use only the locale, not the encoding
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
return $this->getLocale();
} else {
return $this->getLocale() . "." . $this->getEncoding();
}
}