Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 1963

Error: No mapping for the Unicode character exists in the target multi-byte code page

$
0
0

Hello,

I’m learning about restful servers and tried out this example: http://chapmanworld.com/developer-skill-sprint-restful-json-services/.

It works until I’m typing in a special character like é, è, ç, ï etc.

 What happens next depends on which version of Delphi is used to compile the client.

A client compiled with Delphi 10 Seattle will show an inversed question mark where the special character should be.

A client (exactly the same source code) compiled with 10.1 Berlin will generate an error and no data will be loaded.

See attached screen prints. Unicode_mapping_problem

Question 1: Bug in Berlin, or in Seattle?

Question 2: What should be done to process the special characters correctly?

For should it matter: I’ m working on a Dutch Windows 10 version with regional settings set to Belgian.

I came across functions like AnsiToUtf8 , AnsiToUtf8ex etc. and tried them here and there, but I found nothing that works.

Please advise.

Best regards

Patrick 


Viewing all articles
Browse latest Browse all 1963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>