mck89
mck89

Reputation: 19261

Utf-16BE to ISO-8859-1 in PHP

i need to convert a Utf-16BE in ISO-8859-1 in PHP (i'm not an expert in encoding so i don't know if Utf-16 and Utf-16BE are the same thing). I've read somewhere to use the mb_convert_encoding function but i haven't that function because i don't have the multibyte extension installed. So do you know an alternative method to do this?

Upvotes: 0

Views: 595

Answers (1)

VolkerK
VolkerK

Reputation: 96159

There's also the iconv module exposing the string iconv ( string $in_charset , string $out_charset , string $str ) function.
You really don't want to code the conversion yourself, use one of those two modules.

Upvotes: 3

Related Questions