Hey everyone I have been searching for solutions on how to find a way to allow my program to read French accents when finding an element with css selector. The inner text contains a word that has a accent (crédit) but instead it gives me an error saying that it finds cr?dit.
Clearly it cannot read the accent provided. I am using netBeans as my IDE and my project is both in English and French. all the English code works and when I switch the lang to "fr" it checks my .properties file and finds the right text by can't read the accents that I put in the French version of the. properties file.
I am using UTF-8 and I also tried using unicode in my properties file for the accented letters but that doesn't seem to work either. Does anyone Know why the program doesn't recognize accents in the WebDriver? And any Solution would be helpful.
I also added the text that many ppl suggested inside of the netbeans.config file ( -J-Dfile.encoding=UTF-8 )and also added in the pom file the 2 lines suggested on stack overflow
( <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>)