Charset parameter encoding for Content-Type

Charset parameter encoding for Content-Type SearchSearch
Author Message
George A. K
Unregistered guest
Posted on Wednesday, September 01, 2004 - 09:37 am:   

Hi,

How do I encode the charset parameter if the value is iso-10646-ucs-2(0x03E8)?

Should I have to represent it as a long integer?

That is for text/plain with charset ucs-2 the content-type will be

05 -> Content-Type Length
83 -> text/plain
81 -> Charset parameter
02 -> Length of the Long Integer
03 -> First byte of the assigned number of UCS-2
E8 -> First byte of the assigned number of UCS-2

Is this the correct way of representing it?

Thanks in advance