1

I am writing a Junit test where I have this assert:

assertThat(foo.getLabel()).isEqualTo("Numéro");

I am running this test on H2 from a data.sql file Everything is encoded in Cp1252 (eclipse, java files, and the sql data file) but the assert fails I tried to convert all to UTF-8 nothing worked, any help would be so much appreciated! Edit: enter image description here

Khalil M
  • 1,637
  • 2
  • 21
  • 34

1 Answers1

0

If UTF-8 dosent work you can change your string with special caracter code

é ---> é

assertThat(foo.getLabel()).isEqualTo("Numéro");
Azzabi Haythem
  • 2,141
  • 7
  • 25
  • 30