Hi all.

I have a text CSV driver that does CP1252 encoded files with
scandinavian letters without problems. I see attributes get filled with
scandinavian letters () and all seems ok when I query and set them
with LDAP from UTF-8 terminal or iManager.

But the problem comes when other drivers read the attributes. For
example when a loopback driver reads the attribute with scandinavian
letters I see control characters that mess up the trace.. which would
indicate wrong encoding? I thought that IDM can handle encodings internally?

Oddly enough I see the problem also when setting scandic character
values from iManager and UTF-8 command line too. Also tried latin1
terminal but that did not work for me at all since my locale is UTF-8.

So it seems my eDirectory / IDM uses something else than UTF-8
internally? I have never had such problem before. I thought that
eDirectory / IDM use the global locale values which are UTF-8 in my server.

Here is a piece of trace of an instance queried by a driver, as you can
see the value has some control characters:

<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Standard" version="4.0.2.0">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<instance class-name="User" event-id="0"
qualified-src-dn="O=system\OU=xxx\CN=xxx" src-dn="\xxx"
src-entry-id="111302">
<attr attr-name="myattr1">
<value timestamp="1357590032#2" type="string">L
</attr> </value>
</instance>
<status event-id="0" level="success"></status>
</output>
</nds>

this is my locale output:

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

All help appreciated.