Announcement Announcement Module
Collapse
No announcement yet.
(spring data mongodb) Unable search a document with special characters, acute accent. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • (spring data mongodb) Unable search a document with special characters, acute accent.

    Hey

    context :
    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.

    Xavier.

  • #2
    Have you tried to run the query on the MongoDB shell? We're not messing with the character set anywhere actually…

    Comment


    • #3
      I isolated my java code and it works.

      finaly, it's a jvm environnement problem, sorry.
      Last edited by Xavier59; Jul 18th, 2012, 05:20 PM.

      Comment

      Working...
      X