Paula Blau wrote:[color=blue]
> I have a problem with encoding a file .txt to win-1252.
>
> $text = recode_string("ISO-8859-1..win-1252", $text);
>
> but I get the following error message:
>
> Fatal error: Call to undefined function: recode_string()[/color]
Recode Functions are not available on Windows platforms
http://www.php.net/manual/en/ref.recode.php
[color=blue]
> the same when I trie to recode the whole file
>
> with recode_file.
>
> Perhaps wrong Parameters ?
> but wwhich instead ?
> or sombody who knows another solution.[/color]
Maybe iconv() will do what you want?
http://www.php.net/manual/en/function.iconv.php
Something like (not tested, never used iconv())
$text = iconv('ISO-8859-1', 'win-1252', $text);
--
USENET would be a better place if everybody read: : mail address :
http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
http://www.expita.com/nomime.html : to 10K bytes :