Jul 10th, 2012, 06:06 PM
(spring data mongodb) Unable search a document with special characters, acute accent.
spring data mongodb : 1.0.2
mongodb java driver : 2.7.2
configuration is OOTB.
findAll() return docs with acute accent successfully
but if i search a doc like this :
Query query = new Query(Criteria.where("docName").is("stringwithééé" ));
Doc doc = this.mongoTemplate.findOne(query, Doc.class);
doc always return null
please, help me.
Jul 11th, 2012, 03:14 AM
Have you tried to run the query on the MongoDB shell? We're not messing with the character set anywhere actually…
Jul 18th, 2012, 03:49 PM
I isolated my java code and it works.
finaly, it's a jvm environnement problem, sorry.
Last edited by Xavier59; Jul 18th, 2012 at 04:20 PM.