I think that D83C is the first part of a “surrogate pair”. Did you determine which is the code after this character in the string?
Consider using Unicode or UTF-8 encoding and show some details about the program that has this problem.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
My netcore version is 2.0.0
I run it as a server,and I get a error when I write my log: Unable to translate Unicode character \uD83C at index 267 to specified code page.
however it happen just only once,I find the uD83C mean the signal �
first,I check my code,it not change.I also do same action on my test server,it's ok too.
then i search this question online; I find many similar question: https://github.com/dotnet/runtime/issues/594;https://github.com/dotnet/runtime/issues/12183
I want to know how to deal this question,should I use unicode encode?or I should up my version of netcore;
when this error happen,my program will stop,it surely confuse me ,please help me !!!!!
I think that D83C is the first part of a “surrogate pair”. Did you determine which is the code after this character in the string?
Consider using Unicode or UTF-8 encoding and show some details about the program that has this problem.
Hi 21422491,
You can try to replace characters before you return them or save them using Regex.Replace method.
More discussion in this link you can refer to.
Best Regards,
Daniel Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.