Results 1 to 3 of 3

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

  1. #1
    Join Date
    Jul 2012
    Posts
    2

    Default (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. #2
    Join Date
    Apr 2006
    Location
    Dresden, Germany
    Posts
    483

    Default

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

  3. #3
    Join Date
    Jul 2012
    Posts
    2

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •