if I enter
annual salary above 30K
the length judged by the length attribute is 7
. my database code is utf8mb4, and the length of a Chinese character is equivalent to 4
, but if this field is stored in the database, it is equivalent to 19
add me to enter the content of [annual salary above 30K], how should I use js to calculate his length is 19