Skip to main content

Hi all,

We are receiving data in json structures. For some characters we receive escaped codes such as \\uxxxx

Example : \\u00E9 for an 'é', \\u0027 for an apostrophe, etc

Is there a Uniface function to convert them ?

Thanks for your help

Nicolas



------------------------------
Nicolas Colmart
Self Registered
Nice FR
------------------------------

Hi all,

We are receiving data in json structures. For some characters we receive escaped codes such as \\uxxxx

Example : \\u00E9 for an 'é', \\u0027 for an apostrophe, etc

Is there a Uniface function to convert them ?

Thanks for your help

Nicolas



------------------------------
Nicolas Colmart
Self Registered
Nice FR
------------------------------

Hi Nicolas,

Try to transform unicode char to xml entity :

\\u00e9 -> &#xu00e9;

en use $string to get ascii character :

$string(« é » ) -> è

Gilles.



------------------------------
Hortion Gilles
Dedalus Healthcare France
Artigues Pres Bordeaux FR
------------------------------


Hi Nicolas,

Try to transform unicode char to xml entity :

\\u00e9 -> &#xu00e9;

en use $string to get ascii character :

$string(« é » ) -> è

Gilles.



------------------------------
Hortion Gilles
Dedalus Healthcare France
Artigues Pres Bordeaux FR
------------------------------

Hi Gilles

Thanks for your help

Regards,

Nicolas



------------------------------
Nicolas Colmart
Self Registered
Nice FR
------------------------------