UTF-8 Strings are destroyed (with solution)
-
I realized that UTF-8 strings are destroyed during the processing by Postie.
Then I figured out that
htmlentitiesis the origin of this problem.
cf: http://stackoverflow.com/questions/5679715/htmlentities-destroys-utf-8-stringsFor my case, it was easy to fix this by changing the source as below. But I’m not sure this solution is universal for others. For example, I’m not sure the third argument of
htmlspecialcharsshould beUTF-8or not depending on the settings.DebugEcho("GetContent: html not allowed (htmlentities)"); //$meta_return .= htmlentities($part->body); $meta_return .= htmlspecialchars($part->body, ENT_QUOTES, "UTF-8");But anyway, I would like to report this and hope to see this is fiexed.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘UTF-8 Strings are destroyed (with solution)’ is closed to new replies.