Receive them from whom, and how?We receive orders with name with internatioal caracter. ex: "Jesus Nińo".
That may be a problem, if there are no application-level restrictions on what is considered valid data. There's a lot of data that can be represented in UTF-8 that you could potentially receive that has no valid mapping into ISO8859-1. And even for characters that are in both character sets, they may have different encodings. So another variable is whether the client that is receiving the UTF-8 data and writing the ISO8859-1 data into the database knows that the input data is UTF-8 and is mapping it somehow, or whether it is just assuming that everything it sees is ISO8859-1, in which case you have data loss.The message is a JSON message encoded in UTF-8
ex: "Name": "Jesus Ni\u0144o"
The chartset of the database is : ISO8859-1
def var lcjson as longchar no-undo.
define temp-table tt no-undo
field Name as char
.
lcjson = '~{"tt":[~{"Name":"Jesus Ni\u0144o"}]}'.
temp-table tt:read-json( "longchar", lcjson ).
find first tt.
message tt.name view-as alert-box.