|
Posted by Lucas Kruijswijk on 12/11/06 20:29
Hello,
I am making some site, where I use UTF-8 encoding.
From PHP I send mail. But, if possible I want to send
the mail in ISO-8859-1 or KOI8-R (because still some
mailers have problem with UTF-8), but if not, just in
UTF-8.
If I look in the documentation, there is no function that
can check if a UTF-8 string can be encoded in another
encoding without loss of characters.
The function mb_check_encoding and mb_detect_encoding
have a different purpose.
Or, do I miss something?
So, I want a function:
bool mb_encoding_possible(string str, string to_encoding, string
from_encoding)
which returns TRUE if mb_convert_encoding is possible, without loss.
Regards,
Lucas Kruijswijk
Navigation:
[Reply to this message]
|