18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Sahi mail : encoding issue

jmarcjmarc Members
edited November -1 in Sahi - Open Source
Hi,

I have implemented the email sending from SAHI scripts, like shown in http://sahi.co.in/forums/viewtopic.php?id=3411.

In my case, the e-mail is correctly sent, but caracters like 'é', 'è', 'ê'... are not shown correctly.
For example :

var $host = "smtp.gmail.com";
var $port = 25;
var $username = "test@gmail.com";
var $password = "test";
var $mailer = new net.sf.sahi.ant.Mailer($host, $port, $username,$password);
$mailer.send("test@test.com", "test@test.com", "Résultat des tests du JJ/MM/AAAA", "Test Mail from SAHI");

In the object of the message, I have :
"R?sultat des tests du JJ/MM/AAAA"
instead of :
"R?sultat des tests du JJ/MM/AAAA"

I think it's an encoding issue, but I don't find any solution.

Has anyone an idea on this, please ?

Jean-Marc

Comments

  • Sorry, read :

    In the object of the message, I have :
    "R?sultat des tests du JJ/MM/AAAA"
    instead of :
    "Résultat des tests du JJ/MM/AAAA"

    Jean-Marc
Sign In or Register to comment.