Side navigation
#1662 closed bug (worksforme)
Opened September 18, 2007 09:02PM UTC
Closed December 06, 2007 02:41AM UTC
Last modified March 15, 2012 07:46PM UTC
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 (1)
Changed December 06, 2007 02:41AM UTC by comment:1
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.