I've been googling my ass off without any success. So I came here. Hope someone can help me out! Im using Groovy to do some LDAP searches but when a person has å, ä or ö in their names I get for example Jens R√§fteg√•rd. I've tried:
new String(attrs.get("name")?.get(0)?.getBytes(), "UTF-8")
And even tried:
def charsets = Charset.availableCharsets() charsets.each() { key, value -> value.aliases().each() { alias -> println new String(attrs.get("name")?.get(0)?.getBytes(), alias) } }
Anyone got a clue?
If anyone's interested it was the Grails Shiro-plugin whom messed with the encodings. Fixed now!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.