<?php
// Codepage.php
// Copyright P.Kassel, M.Seliger, G.Trietsch, all Rights Reserved
namespace Docuform\Lib;class Codepage{static function tbLatin1ToUtf8($text):string{return iconv('windows-1252','UTF-8',$text);}static function tbUtf8ToLatin1(& $text):string{if(is_array($text)){foreach((array)$text as $key=>$val){if(is_string($val)){$text[$key]=iconv('UTF-8','windows-1252',$val);}}return $text;}return@iconv('UTF-8','windows-1252',$text);}static function tbCodeUtf8Password($text):string{return@self::tbUtf8ToLatin1($text);}}