For example, Chinese text (GB2312) is inserted into the text box (or text area) of the html page and the form is published. On the server side, are there any means by which this character set will be detected?
How will this detection be carried out if texts belonging to different character sets are inserted into the text box?
You need to tell the browser which encoding to use by adding the accept-charset = "UTF-8" (or similar) attribute to the form. Apparently this defaults to the character set of the page , but I wouldn't count on it. The browser will not tell you what encoding is used when submitting the form, so you need to assume that it used the one you told him.
The web browser must send the type of content, including the encoding, when it sends the data.
" " ( - ) , . , ( ) (, , ). , , , , , , .
if you use php on the server, you can use mb_detect_encoding
Source: https://habr.com/ru/post/1716697/More articles:Unit rotation test iPhone - iphonewhat is this encoding? - asp.netIs there a difference between using innerjoin and writing all tables directly in a segment? - sqlJava-эквивалент функциональности Python → set (string) - javaWhy, when I center the image in the div with the line height, does the 3px gap appear at the top? - cssExcessive reserved space on SQL Server - sqlhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1716699/how-do-you-present-an-email-address-to-thwart-casual-spammers-not-spambots&usg=ALkJrhg6aSDvTx6ElQFK06et1AwB_3SFTQAuthenticating users from a specific ldap active directory - phpWhat is the purpose of the * .pro file? - c ++Can you use the standard GDB debugger with Qt executables? - c ++All Articles