The "Driver Test Database Query System" is simple: Enter the question keyword and query the answer. This was something I wanted to do when I got my driver's license, but I didn't have the ability or time to complete it at the time. Now the project is very good in my spare time. (The following shows the effect of a web version)
You can also accessHttp://zfqnet.cnTake a look at the results. You can also use your phone to see if it can be opened normally.
The WAP browser that comes with my iPhone can work normally, but the ucweb installed after I open it does not respond, and no messages are prompted. I cannot figure out the reason. In addition,WAP version at http://www.wapsilon.com/website on the nokia7210 WAP Simulator Test submitted Chinese keywords it all to encode into a UTF-16, and my database, PHP files and PHP output WML are using UTF-8 character set, so the above simulation was not successful, I tried to transcode the UTF-16 to UTF-8 after it is normal, but in the end I did not choose to do this. There are three reasons:
1. I firmly believe that most mobile browsers use UTF-8 to process Chinese characters (of course there is no theoretical or factual basis)
2. If browsers of different types of mobile phones process different Chinese character encoding methods, I have to determine the encoding method of the passed strings one by one and then perform corresponding transcoding. This is very tiring, do not want to do
3. I am not familiar with PHP, and WML is the first contact, so I am a newbie. Therefore, I firmly believe that this problem can be solved by just clicking it. For example:
<Input type = "text" name = "A"/> <br/> <anchor> submit <br/> <go href = "XXX. PHP "mce_href =" XXX. PHP "method =" get "> <br/> <postfield name =" A "value =" $ (A: E) "/> <br/> </go> <br/> </anchor>
The above WMLCodeIs there any way to encode "$ (A: E)" using PHP first, and then assign the value to the value in postfield. (Roughly like this: value = "<? PHP echo encode ($ (A: E) ;?> "). If this is the case, the problems caused by different encoding can be solved. We also hope that you can give pointers.
PS: also hope to pass the mobile phone to test the http://zfqnet.cn comrades can reflect some situations, such as what type of mobile phone can be accessed normally? Can it be accessed but cannot work properly due to Encoding Problems? If the access is available but the encoding is incorrect, the problem may occur.
The entered box displays the encoded query keyword (UTF-16 encoding in the figure)