#1662 closed bug (worksforme)
can't use val("xxx") set unicode character to a text input
Reported by: | guapo | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.2.2 |
Component: | core | Version: | 1.2.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
i use
$("#test").val("hello");
,success. and if i use
$("#test").val("中华人民共和国");
fail.
Attachments (2)
Change History (3)
Changed 15 years ago by
Attachment: | jquery_test.html added |
---|
comment:1 Changed 15 years ago by
Milestone: | 1.2.1 → 1.2.2 |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
I can't claim to know much about unicode but this doesn't appear to be a jQuery problem. I was able to produce a test case (attached) where jQuery did just fine for me although it wasn't easy. I finally was able to produce the code written in Microsoft Word and did a Save As to a text file with UTF-8 format. I then renamed it as a .js file and it worked. Until I found the right document format it wasn't working.
Hopefully this helps.
Note: See
TracTickets for help on using
tickets.
test case