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

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -