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.

unicode encoding

dkdk Members
edited November 2010 in Sahi - Open Source
What kind of encoding is used in SAHI? Where can I change it?
Scenario: I want to set a char (slanted apostrophe ).when I pass its unicode through sahi, it shows up as a box or ?. Any solution for this?
_assertEqual("dose\u8217t|''", _textbox("SC_Name_Input").value);

Comments

  • narayannarayan Administrators
    Hi dk,

    Could you check if the file is saved in UTF-8 encoding.

    Regards,
    Narayan
  • dkdk Members
    Hi Narayan,
    Are you mentioning about SAHI property file? should I pass character in utf8?
    Thanks
    DK
  • narayannarayan Administrators
    Hi,

    I am mentioning the .sah file which has the unicode character. Files can be saved in different encodings. In your editor there must be a way of saving a file in a different encoding.

    Regards,
    Narayan
  • dkdk Members
    Thanks a bunch...I use Eclipse, and set encoding as Utf 8 , it works fine.
This discussion has been closed.