Textbox.Text is displayed correctly, but I do not get the correct Japanese characters on the server code

I can enter Japanese characters in the text box and it will display well. However, when I click the "Save" button, I look at the text property of the text field and its value is strange, for example, "テ ル か ら ら"

This is the value that is sent and stored in the database. How to get normal Japanese characters displayed in a text box?

+3
source share
1 answer

What happens is encoding and decoding. You can go to the online decoder to see how the characters you showed look like. So, 無料延泊

becomes

無 料 延 泊

JavaScript ( ) , JavaScript . Stack HTML jQuery?. #, Html.Decode.

0

Source: https://habr.com/ru/post/1778374/


All Articles