Le 02/10/2018 à 10:06, Matjaz Premerl a écrit :
> Hi,
>
> In our names we're using also characters like that Č Ć Ž Š Đ č ć ž š đ.
> I hope you can see those characters properly. From those I want to get
> normal characters like c z d
> I was trying with some normalize method within the data set, but I'm
> getting the message
> that this method is not recognized while I'm running LSC tool.
> Is there some special instruction how is possible to use normalize
> method in java script while using LSC tool?

You can use "replaceAll", for example:

var s = srcBean.getDatasetFirstValueById("PRENOM").toLowerCase();

    s = s.replaceAll("[èéêë]","e");
    s = s.replaceAll("[ûù]","u");
    s = s.replaceAll("[ïî]","i");
    s = s.replaceAll("[àâ]","a");
    s = s.replaceAll("Ô","o");
    s = s.replaceAll("[ÈÉÊË]","E");
    s = s.replaceAll("[ÛÙ]","U");
    s = s.replaceAll("[ÏÎ]","I");
    s = s.replaceAll("[ÀÂ]","A");
    s = s.replaceAll("Ô","O");
    s = s.replaceAll("'","");
    s = s.replaceAll(" ","");


-- 
Clément Oudot | Identity Solutions Manager

[email protected]
+33 6 99 66 51 31
71 rue Francis Pressenssé - 69100 Villeurbanne

Worteks | https://www.worteks.com

_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users

Reply via email to