• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
problem of accents on FR data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem of accents on FR data


  • Subject: problem of accents on FR data
  • From: Raymond NANEON <email@hidden>
  • Date: Fri, 14 Dec 2012 10:20:53 +0000 (GMT)

Hi List,

I have a little data fetching problem. In our data base we have names with accent and other do not. So when we do a SQL request in our WHERE CLAUSE we surround the instruction with the function func_enleve_accent which removes accents.

i.e
SELECT nom, prenom WHERE upper(fonc_enleve_accents(i.prenom)) like upper(fonc_enleve_accents('severine')) )

With this request we have all names with accents or not (sévérine or severine)

In WO I try to reproduce the same thing but it does not work properly. When I have a name with accent like 'séverine' it works (we all names) but with 'severine' we have only name without accent.

Here my qualifier

// CLAUSE WHERE "PRENOM LIKE ..."
    private static EOQualifier qualForPrenomLike(String prenom) {
        String prenom_a = StringCtrl.chaineSansAccents(prenom, "?");
        return PRENOM.like(prenom).or(PRENOM.like(prenom_a));
    }

How can I modify my qualifier to have the same result like SQL request?

Thanks for you help
Envoyé depuis iCloud
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: problem of accents on FR data
      • From: Stéphan Mertz <email@hidden>
  • Prev by Date: Rép : Re: Wonder 5.8.2 and 6.0
  • Next by Date: CalDAV EOF adaptor
  • Previous by thread: Re: Best way to render a grid?
  • Next by thread: Re: problem of accents on FR data
  • Index(es):
    • Date
    • Thread