php - What is the best way to detect character set of an E-Mail message? -
i developing php script connects remote imap server , fetches body of message, parses , sends data db. inbox contais 50000+ messages, of them having us-ascii , iso-8859-1 encoding. plain body of message must converted utf-8 encoding before submission database.
what best way of detecting character set of message's plain text body?
Comments
Post a Comment