ConfD User Community

Netconf JNC toXMLString method

I am trying to push config with UTF-8 using JNC below method.

device.getSession(sessionName).rpc(rpc).toXMLString();

rpc contains the UTF string. But receiver those UTF-8 characters are conveted to ? instead of special characters.
Ex:

<id>1</id>
<versionID>1</versionID>
<status>TRACE_STATUS_ENABLED</status>
<subscriber>33344567</subscriber>
<startTime>2020-07-15T17:34:29</startTime>
<stopTime>2020-07-20T12:28:02</stopTime>
<description>Info. Ce numéro a appelé</description>

Receiver end :

<id>1</id>
<versionID>1</versionID>
<status>TRACE_STATUS_ENABLED</status>
 <subscriber>33344567</subscriber>
 <startTime>2020-07-15T17:34:29</startTime>
 <stopTime>2020-07-20T12:28:02</stopTime>
 <description>Info. Ce num?ro a appel?</description>

Is JNC API will convert these UTF-8 to non UTF-8. Pls suggest how to proceed.

BR,
Badari.

Hi, any suggestions on this. Using above mentioned method trying to send the rpc request ( which has UTF-8 formatted string) to receiver , but at receiver end those UTF-8 characters are showing with “?”.

Before sending text was : Info. Ce numéro a appelé
Receiver end text was : Info. Ce num?ro a appel?

Any help on this appreciated.

BR,
Badari.

I am convinced this is a problem in JNC, so you should raise an issue or ask for support at its GitHub page.

1 Like