Re: [Gambas-user] Retrieve charset of mimepart

2014-11-07 Thread Benoît Minisini
Le 07/11/2014 09:03, roberto a écrit : > Hi Benoît (it is always a pleasure to read you in mailing list) > > we have eg 3 cases: > 1°-> > "Content-Type: text/plain; charset="iso-8859-1" > > print hpart.ContentType > output-> "text/plain" > print hpart.Header["Content-type"] > output-> text/plain; c

Re: [Gambas-user] Retrieve charset of mimepart

2014-11-07 Thread roberto
Hi Benoît (it is always a pleasure to read you in mailing list) we have eg 3 cases: 1°-> "Content-Type: text/plain; charset="iso-8859-1" print hpart.ContentType output-> "text/plain" print hpart.Header["Content-type"] output-> text/plain; charset="iso-8859-1" 2°-> "Content-Type: text/plain; char

Re: [Gambas-user] Retrieve charset of mimepart

2014-11-06 Thread Benoît Minisini
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 > AFA

Re: [Gambas-user] Retrieve charset of mimepart

2014-11-06 Thread roberto
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 Il 06/11/2014 12:24, Jorge Carrión ha scritto: > I use this cod

Re: [Gambas-user] Retrieve charset of mimepart

2014-11-06 Thread Jorge Carrión
I use this code in the EMail function to set the mime. I'm not very sure if this is what you are asking for: For Each fich In aAttached Exec ["file", "-bi", fich] To mime mime = Left(mime, InStr(mime, ";") - 1) fname = Right(fich, - RInStr(fich, "/"))

[Gambas-user] Retrieve charset of mimepart

2014-11-06 Thread Roberto
Dear All, there is a method to get the charset of a mimepart ( eg. part.ContentType = "plain/text" )? Best Regards Gambas 3.6 -- ___ Gambas-user mailing list Gambas-user@lists.s