Discussion:
[VM] Forcing Unicode with text/plain
Yeechang Lee
2014-09-11 19:56:01 UTC
Permalink
Using VM 8.1.2 I received a message labeled as

Content-Type: text/plain;

but with Unicode ( \342\200\231 ) in the body. If the header had
specified a charset, like

Content-Type: text/plain; charset=UTF-8

VM would have displayed the Unicode character ( $,1ry(B ) properly. How can
I have VM always assume that a plaintext message is in Unicode?
Uday Reddy
2014-11-06 21:59:24 UTC
Permalink
Sorry, somehow your messages didn't arrive into my normal inbox, and I am
just seeing them.
Post by Yeechang Lee
Using VM 8.1.2 I received a message labeled as
Content-Type: text/plain;
but with Unicode ( \342\200\231 ) in the body. If the header had
specified a charset, like
Content-Type: text/plain; charset=UTF-8
VM would have displayed the Unicode character ( $,1ry(B )
properly. How can I have VM always assume that a plaintext message is in
Unicode?
I don't think there is a way. UTF-8 needs decoding. If there is no header
saying so, no decoding will be done.

Perhaps you can write a function that adds "charset=UTF-8" to all the
text/plain parts of a message?

Cheers,
Uday

Continue reading on narkive:
Search results for '[VM] Forcing Unicode with text/plain' (Questions and Answers)
34
replies
What do you think of mexicans?
started 2006-05-16 11:03:48 UTC
mexico
Loading...