Giter Site home page Giter Site logo

Encoding [sf#4] about aim HOT 37 CLOSED

nilnull avatar nilnull commented on August 21, 2024
Encoding [sf#4]

from aim.

Comments (37)

nilnull avatar nilnull commented on August 21, 2024

Commented by nilnull on 2014-12-24 09:32 UTC
No we do not have encoding now but that's good to have it. We are considering adding the encoding in our next releases.

Thanks.

from aim.

nilnull avatar nilnull commented on August 21, 2024

Updated by nilnull on 2014-12-24 09:37 UTC

  • labels: --> encoding
  • Milestone: 1.0 --> 2.0

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by nilnull on 2015-01-19 04:21 UTC
Encoding is supported now

from aim.

nilnull avatar nilnull commented on August 21, 2024

Updated by nilnull on 2015-01-19 04:21 UTC

  • status: open --> closed

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by dagarins on 2015-05-19 12:18 UTC
Hello,

please give me some example of using encoding in MimeMailMessage (AegisImplicitMail)

In my case
mymessage.BodyEncoding = System.Text.Encoding.GetEncoding("ISO-8859-2") and
mymessage.SubjectEncoding = System.Text.Encoding.GetEncoding("ISO-8859-2")
don't work.

Best regards.

Tomaž

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by nilnull on 2015-05-19 16:44 UTC
Dear dagstone

What is the error u r facing?

On Tuesday, May 19, 2015, "Tomaž Dagarin" [email protected] wrote:

Hello,

please give me some example of using encoding in MimeMailMessage
(AegisImplicitMail)

In my case
mymessage.BodyEncoding = System.Text.Encoding.GetEncoding("ISO-8859-2") and
mymessage.SubjectEncoding = System.Text.Encoding.GetEncoding("ISO-8859-2")
don't work.

Best regards.

Tomaž

Status: closed
Milestone: 2.0
Labels: encoding
Created: Tue Dec 23, 2014 12:36 PM UTC by Sergey Kuznetsov
Last Updated: Mon Jan 19, 2015 04:21 AM UTC
Owner: nobody

Custom encoding isn't supported.

Maybe need set utf-8 by default?

Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/netimplicitssl/tickets/4/

To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/

--
Sent from Gmail Mobile

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by dagarins on 2015-05-20 04:44 UTC
Hello Araz Farhang Dareshuri,

in my code mymessage.Subject and mymessage.Body I would like to use Slovenian characters such as "šđčćž" but when I use them as a result I get question mark such as "?????".

In other programs I use
mymessage.BodyEncoding = System.Text.Encoding.GetEncoding("ISO-8859-2")
mymessage.SubjectEncoding = System.Text.Encoding.GetEncoding("ISO-8859-2")
and it works.

My code:

Dim mail As String = "my e-mail"
Dim host As String = "my host"
Dim user As String = "my username"
Dim pass As String = "my password"

Dim mymessage = New MimeMailMessage()
mymessage.From = New MimeMailAddress(mail)
mymessage.To.Add(mail)

mymessage.IsBodyHtml = True
mymessage.Subject = "naslov šđčćž"
mymessage.Body = "besedilo ŠĐČĆŽ"
mymessage.BodyEncoding = System.Text.Encoding.GetEncoding("ISO-8859-2")
mymessage.SubjectEncoding = System.Text.Encoding.GetEncoding("ISO-8859-2")

Dim mailer As New SmtpSocketClient(host, 465)
mailer.User = user
mailer.Password = pass
mailer.SslType = SslMode.Ssl
mailer.AuthenticationMode = AuthenticationType.Base64

mailer.SendMail(mymessage)

Thanks for your help.

Best regards.

Tomaž

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by nilnull on 2015-05-20 10:32 UTC
Dear Tomaz,
We are checking the issue , I will update you as soon as I get the results

Thanks for your patience

On Wednesday, May 20, 2015, "Tomaž Dagarin" [email protected] wrote:

Hello Araz Farhang Dareshuri,

in my code mymessage.Subject and mymessage.Body I would like to use
Slovenian characters such as "šđčćž" but when I use them as a result I get
question mark such as "?????".

In other programs I use
mymessage.BodyEncoding = System.Text.Encoding.GetEncoding("ISO-8859-2")
mymessage.SubjectEncoding = System.Text.Encoding.GetEncoding("ISO-8859-2")
and it works.

My code:

Dim mail As String = "my e-mail"
Dim host As String = "my host"
Dim user As String = "my username"
Dim pass As String = "my password"

Dim mymessage = New MimeMailMessage()
mymessage.From = New MimeMailAddress(mail)
mymessage.To.Add(mail)

mymessage.IsBodyHtml = True
mymessage.Subject = "naslov šđčćž"
mymessage.Body = "besedilo ŠĐČĆŽ"
mymessage.BodyEncoding = System.Text.Encoding.GetEncoding("ISO-8859-2")
mymessage.SubjectEncoding = System.Text.Encoding.GetEncoding("ISO-8859-2")

Dim mailer As New SmtpSocketClient(host, 465)
mailer.User = user
mailer.Password = pass
mailer.SslType = SslMode.Ssl
mailer.AuthenticationMode = AuthenticationType.Base64

mailer.SendMail(mymessage)

Thanks for your help.

Best regards.

Tomaž

Status: closed
Milestone: 2.0
Labels: encoding
Created: Tue Dec 23, 2014 12:36 PM UTC by Sergey Kuznetsov
Last Updated: Tue May 19, 2015 12:18 PM UTC
Owner: nobody

Custom encoding isn't supported.

Maybe need set utf-8 by default?

Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/netimplicitssl/tickets/4/

To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/

--
Sent from Gmail Mobile

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by dagarins on 2015-06-11 12:27 UTC
Hello Araz Farhang Dareshuri,

do you have any information about my problem?

Thanks for your help.

Best regards.

Tomaž

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by nilnull on 2015-06-12 17:32 UTC
We are truly sorry , we found a huge bug in our encoding and trying to rectify as soon as possible

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by dagarins on 2015-08-03 14:08 UTC
Hello Araz Farhang Dareshuri,

do you have any new information about encoding?

Thanks for your reply.

Best regards.

Tomaž

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by dhernando on 2015-08-11 14:06 UTC
Hi Araz Farhang Dareshuri,

There's any fix to this?

Thank you very much

Kind regards

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by nilnull on 2015-08-12 02:08 UTC
Dear Diego,
Thanks for your comment. This issue is our first priority but since we are open source and there are planty of unicodes it's not that easy for us to confirm all languedges and release. We would appriciate if anyone wants and can vulanteer for testing

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by sergiojoyce on 2015-09-09 14:20 UTC
Hi Araz,
Great package your doing here! If you are interested I'm able to contribute for testing de enconding.

Kind regards.

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by patakystefan on 2015-09-15 18:48 UTC
Hi, I am using yours AIM client and encoding is also one of my priority(Czech and Slovak language). If you need help with testing or bug fixing, please count me in ;-)

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by nilnull on 2015-09-16 10:02 UTC
Hi, I will appriciate if you can provide your email, send me a message please

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by nilnull on 2015-09-16 10:04 UTC
Thanks Dear Sergio, please give me an email address so I can send you the latest fixes

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by nilnull on 2015-09-22 12:10 UTC
Dear ALL we are sorry for dellays and appriciate your helping suggestions. Please check https://sourceforge.net/p/netimplicitssl/code/ci/master/tree/AegisImplictMail/bin/Release/ for encoding release condidate and give your feedbacks here .
Thanks

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by patakystefan on 2015-09-30 13:35 UTC
Hi, I tested library and encoding fix didn't work. Also, is everything OK with this link? Visual studio marked dll version as 1.0.0.1, but from Nuget i get version 1.0.0.2

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by nilnull on 2015-10-02 07:41 UTC
I am truly sorry, my mistake, I forgot to push my latest commits, would you please retry? May I know which languedge are you using?

Thanks a lot

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by kwmanabu on 2015-11-13 08:22 UTC
Although I tried version 1.0.0.2, sending mails in Japanese does not work.
Could you check it?

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by nilnull on 2015-12-03 08:59 UTC
Have you tried https://sourceforge.net/p/netimplicitssl/code/ci/master/tree/AegisImplictMail/bin/Release/AegisImplicitMail.dll ?

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by georgebak on 2016-01-15 07:44 UTC
Hello and from me, I am from Greece and I have same issue with greek.
I want to help, there is something I can do and/or to look?

Thx

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by wrerik on 2017-07-18 14:21 UTC
I think my previous commit solves this matter

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by bvnhan on 2017-07-22 06:59 UTC
Hi Araz Farhang Dareshuri,

I'm using 1.0.3.0

mailMessage.SubjectEncoding = Encoding.UTF8;//(unicode for vietnamese)
mailMessage.Subject = "tiếng việt";

There's any fix to this?

Thank you.

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by nilnull on 2017-07-22 07:06 UTC
Please try to check out our latest code, the subject encoding is believed to be implemented but yet to be tested. Please don't forget to inform us about the results

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by bvnhan on 2017-07-22 07:16 UTC
i'm using last version (Install-Package AIM -Version 1.0.3)
Result subject "tiếng việt" -> "ti?ng vi?t"

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by wrerik on 2017-08-01 21:44 UTC
You need to download and compile the code, since the latest code still not avaliable on Nuget.

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by bvnhan on 2017-08-02 02:01 UTC
I was successful.
Thank you very much.

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by mahadevbagmare on 2017-11-14 04:40 UTC
@bùi Văn Nhân
I tried with given .dll and also with nuget package AIM -Version 1.0.3. But this also did not work for me. Can you please specify which encoding you have used and is there any other propery to be set ?
I am trying to add superscript in subject,e.g. Test™, but it is showing "Test?"

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by bvnhan on 2017-11-14 06:56 UTC
I downloaded and compiled the code, since the latest code is still not available on Nuget. (help from @erik Rocha Witkowski)

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by mahadevbagmare on 2017-11-14 07:52 UTC
I downloaded the code, compiled it and it works for me.
I used Encoding.UTF8 for my problem.
Thank you very much.

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by putuyuwono on 2017-11-15 01:31 UTC
After downloading and compiling the sourcecode, I can confirm that encoding works well for Korean characters.
Now, I am waiting for nuget package update.

Thanks.

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by jonbush on 2018-06-18 14:36 UTC
Subject field has wrong encoding if you set next value - "Инвойс со складами №0-ИнвСкл-00000007 от 18.06.2018"
If you download and compile sources the error will not go away. For me helped another solution. I use "Convert.ToBase64String" with one parameter instead of "TransferEncoder.ToBase64'" in GetEncodedSubject function.

private string GetEncodedSubject()
{
    if (MailMessage.SubjectEncoding.Equals(Encoding.ASCII))
    {
    return MailMessage.Subject;
    }
    else
    {
        var encodingName = MailMessage.SubjectEncoding.BodyName.ToLower();
        return string.Format("=?{0}?B?{1}?=", encodingName, Convert.ToBase64String(MailMessage.SubjectEncoding.GetBytes(MailMessage.Subject)));
    }
}

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by uckuck2000 on 2018-12-03 08:51 UTC
Hello, my english is not so good.

I'm using 1.0.3.0.
I'm Korean.

Subject and Sender Name encoding has problem. => ??
mailMessage.SubjectEncoding = Encoding.UTF8;
mailMessage.Subject = "테스터"; // <= display text is "??"

help me, please...

Best Regards.
KIM.

from aim.

nilnull avatar nilnull commented on August 21, 2024

Commented by kevinpan on 2018-12-18 06:09 UTC
Works great for Chinese! Thanks!
Holp this project will move to github.

from aim.

nilnull avatar nilnull commented on August 21, 2024

Fixed

from aim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.