Skip to main content

Bug Tracker

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)
  • jquery_test.html (1.0 KB) - added by davidserduke December 06, 2007 02:37AM UTC.

    test case

  • script.js (0.1 KB) - added by davidserduke December 06, 2007 02:37AM UTC.

    required for test case

Change History (1)

Changed December 06, 2007 02:41AM UTC by davidserduke comment:1

milestone: 1.2.11.2.2
resolution: → worksforme
status: newclosed

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.