Le 15/09/2015 14:43, "POISSON Frédéric" a écrit :
Hello all,
I have an LSC synchronization configuration from DSEE LDAP to
OpenLDAP, and some fields on source are stored with ISO-8859-1
charset. And i have to convert them to UTF8.
I search around org.lsc.utils.StringUtils and also with Java
documentation but i succeed. I try also some example of code like :
||byte|[] bytesISO |=| ... ; |byte|[] bytesUTF8 |=| |new|
|String|(bytesISO, |"||UTF-8||"|).|getBytes|(); But without success
when LSC try to evaluate the Javascript code. *Do you have already
done that before ? * |
Hi,
I did not do that before, but it seems that can be done in javascript or
groovy:
*
http://stackoverflow.com/questions/5396560/how-do-i-convert-special-utf-8-chars-to-their-iso-8859-1-equivalent-using-javasc
*
http://stackoverflow.com/questions/7281583/convert-iso-8859-1-to-utf-8-using-groovy
That could work in LSC.
--
Clément OUDOT
Consultant en logiciels libres, Expert infrastructure et sécurité
Savoir-faire Linux
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users