View Full Version : grid cell display non-ascii character in utf8 encoding value rather than the charater

29 Apr 2014, 9:42 PM
eg. I typed "??" in the cell, but it showed "u4e2du6587".

Gary Schlosberg
30 Apr 2014, 11:14 AM
In which version of ExtJS are you seeing this? I put the cellediting example from the docs into this Fiddle and it seems to work fine when I paste those characters into the editable field.

Does the issue occur for you when you paste the characters instead of typing them?

30 Apr 2014, 5:50 PM
Cell editing example worked fine for me from my local SDK-ExtJS 4.2.0 GPL, but for my own project (the same SDK) failed, not matter for typing or pasting.
Well, try the project http://binartist.com/Liuxue360/index.html, typing "admin" for both forms for login and never mind the language.

30 Apr 2014, 5:56 PM
the is the project http://binartist.com/Liuxue360/index.html
(http://binartist.com/Liuxue360/index.htmltype)type "admin" for both forms for login, never mind the language

Gary Schlosberg
30 Apr 2014, 6:12 PM
Pasting those characters also works as expected in the Fiddle when using 4.2.0 as well. Seems like your code must be doing something to the field. Perhaps you can debug until you can isolate what the issue is.

30 Apr 2014, 6:35 PM
Seems "textfield" convert what I typed into utf8 literals - "<div style="text-align: left;" class="x-grid-cell-inner " unselectable="on" id="ext-gen1269">u4e2du6587</div>".

I manually replaced u4e2du6587 to ??? then the cell showed ?? instead of u4e2du6587.

30 Apr 2014, 7:50 PM
eventually, I find that's caused by PHP, the store autosync enabled.