Open Baidu webpage and type in Chinese characters to start searching, press “Back” button to go to B
来源:互联网 发布:建筑模型动画软件 编辑:程序博客网 时间:2024/06/05 22:16
press “Back” button to go to Baidu homepage, input box contains garbledcode.
[DESCRIPTION]
Open Baidu webpage and type in Chinese characters to start searching,
press “Back” button to go to Baidu homepage, input box contains garbledcode.
[SOLUTION]
This issue happens when Baidu searchesJAVAScript. We add log inside
browser search engine to dump Stack Trace to check who is responsible for
garbled code in input box.
We find the result as below:
Stack Trace:
RELADDR FUNCTION
00dbb881 WebCore::HTMLTextAreaElement::setValue(WTF::String const&)
v------> valueAttrSetter
v------> v8::internal:ropertyCallbackArguments::Call(void (*)(v8:ocal<v8::String>,
v8:ocal<v8::Value>, v8::AccessorInfo const&), v8:ocal<v8::String>, v8:ocal<v8::Value>)
00c4d3c9 v8::internal::JSObject::SetPropertyWithCallback(v8::internal::Object*, v8::internal::Name*,
v8::internal::Object*, v8::internal::JSObject*, v8::internal::StrictModeFlag)
00c670c1 v8::internal::JSObject::SetPropertyForResult(v8::internal:ookupResult*, v8::internal::Name*,
v8::internal::Object*, PropertyAttributes, v8::internal::StrictModeFlag,
v8::internal::JSReceiver::StoreFromKeyed)
00c67405 v8::internal::JSReceiver::SetProperty(v8::internal::Name*, v8::internal::Object*,
PropertyAttributes, v8::internal::StrictModeFlag, v8::internal::JSReceiver::StoreFromKeyed)
v------> v8::internal::JSReceiver::SetPropertyOrFail(v8::internal::Handle<v8::internal::JSReceiver>,
v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::Object>,
PropertyAttributes, v8::internal::StrictModeFlag, v8::internal::JSReceiver::StoreFromKeyed)
Briefly, before webpage starts searching, JavaScript of webpage will
convert the Chinese characters in input box into garbled code, so when
pressing “Back” in next page to go back to Baidu Home, browser will show
the previous garbled code in input box. We tried with Chrome and Nexus 5,
the same problem happens. But Chinese characters will not change to
garbled code in other webpage which can store form data.
So it is confirmed that the issue is due to JavaScript of Baidu.
- Open Baidu webpage and type in Chinese characters to start searching, press “Back” button to go to B
- Prevent to cancel Action Mode by press back button
- Go back to past
- How to print Chinese characters in report server in iAS 10g
- "Spring in Action" goes to press
- Infinite Scroll To Load More Content in Webpage Using Ajax, and Jquery
- How to serialize/unserialize type struct in GO
- How to customize back button on UINavigationBar
- How to change the back button behaviour
- 修复系统解决Press [F11] to start recovery system问题
- vi编辑文件保存后,提示“Can't open file for writing Press ENTER or type command to continue”
- 328. Not to advance is to go back. 不进则退
- 出现Press ENTER or type command to continue的原因
- use grep & awk to get ed2k links in the webpage
- How to grab web page in chinese
- to support Chinese in Win7 English version
- How to match Chinese in Python
- How to display Chinese characters exactly when using Tomcat.
- R语言学习之路(二)矩阵
- IP地址中的保留地址
- 解决域名访问出现中文乱码,而本地测试不会出现的问题
- Ubuntu下U盘文件只读的解决办法
- 23种设计模式(23)--Interpreter模式
- Open Baidu webpage and type in Chinese characters to start searching, press “Back” button to go to B
- RRC连接重配置
- 学习SpringMVC(十八)之JSR303数据校验
- Picasso 图片请求库(工具类)
- JavaScript学习
- angularJs模态框点击空白不隐藏
- 《统计学习方法》——概论
- HDU 1669 Monkey and Banana
- Linux Netfilter实现机制和扩展技术