[Gambas-user] Retrieve charset of mimepart

Benoît Minisini gambas at ...1...
Thu Nov 6 14:46:15 CET 2014


Le 06/11/2014 13:20, roberto a écrit :
> Thanks Jorge for you fast reply
>
> I have tried with:
>
>    s = hPart.Headers["content-type"]
>         If InStr(s, "charset") > 0 Then
>               bla bla bla (estrapolate "charset" content )
>         endif
>
> but is not an excellent solution
>

AFAIK, the only place where the charset is specified is in the "charset" 
part of the Content-Type header (that you can get with the 
hPart.ContentType property directly).

If the charset is not specified, I guess that you must guess!

Regards,

-- 
Benoît Minisini




More information about the User mailing list