0

I have in my integration test the following :

 myMap.put(Language.RU, "Египет");

which is then used as parameter, however when I do I sys out in my code (that uses the string accessed via the hashmap), it looks like this :

param is : Каир%

Consequently there is no data returned, when in fact there should be when the original string is used to query the database.

I thought I was using utf-8 throughout, what could cause the problem ? Usign the technique here, everything is indeed set to UTF-8 ... ?

Community
  • 1
  • 1
NimChimpsky
  • 44,999
  • 57
  • 192
  • 304

1 Answers1

0

You may need to set the encoding of your vm with -Dfile.encoding=UTF8

dngfng
  • 1,894
  • 16
  • 33
  • Its workign now, I think one of my files encoding was not utf-8 - somethign with my ide got borked I think. Thanks anyway – NimChimpsky Sep 26 '12 at 15:04