JavaScript validation issue with international characters

前端 未结 7 1322
粉色の甜心
粉色の甜心 2020-12-02 07:35

We use the excellent validator plugin for jQuery here on Stack Overflow to do client-side validation of input before it is submitted to the server.

It generally work

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 08:18

    This isn't really an answer but I don't have 50 rep yet to add a comment... It can definately be attributed to encoding issues.

    Yea "ECMA shouldn't care about encoding..." blah blah, well if you're on firefox, go to View > Character Encoding > Western (ISO-8859-1) then try using the Name field.

    It works fine for me after changing the encoding manually (granted the rest of the page doesn't like the encoding switch, :P)

    (on IE8 you can go to Page > Encoding > Western European (Windows) to get the same effect)

提交回复
热议问题