Unfortunately, I am working with xbase Version 1.90.355 and xb2net 3.6.01
According to your help, try using xbCPConvert function provided by xb2net, but it didn't work
With this code:
cString: = oCustomer: GetVar ("name")
? "Customer before", cString
cString: = xbCPConvert (cString, CP_UTF8, CP_ACP)
? "Client After", cString
Any other idea ??
Andreas Gehrs-Pahl Wrote:
> >when he should receive Andrés, I receive: Andr\u00e9s
> You can use the Xbase++ function JsonDecode(cString). The UTF-8 "\u00e9"
> character will be decoded as an OEM or ANSI character, depending on your
> Character Set setting.
> You can also use the Xbase++ function Json2Var() for more complex JSON data.
> The Json*() functions were added to Xbase++ in Version 2.00.951.
> Additionally, Xb2Net also has the xbJSON class and xbJSONParse() function
> (since Version 3.6.00), but I'm not sure if they (automatically) handle
> those "\uXXXX" encodings. I would assume that they do, but I'm not sure.
> Finally, there are some other options, like Chilkat and OT4Xb, which also
> have JSON handling and encoding/decoding functionality.
> Hope that helps,
> Andreas Gehrs-Pahl
> Absolute Software, LLC
> phone: (989) 723-9927
> email: Andreas@AbsoluteSoftwareLLC.com
> web: http://www.AbsoluteSoftwareLLC.com
> [F]: https://www.facebook.com/AbsoluteSoftwareLLC