Computer simulation mobile phone debugging is normal, the use of the real phone error, what may be the problem, how to debug?

the server is a virtual machine on the LAN, with the same function.
the computer uses developer tools to simulate mobile access, and the rich text editor is normal. If the phone is real, the submitted content is garbled, and it is the same when placed on the public network. The computer simulation is normal, but the real machine is abnormal.
the cache has also been cleared on the phone.
what may be the reason and how to debug and troubleshoot.

Dec.13,2021

  1. use vConsole
  2. Android: inspect using chrome remote debugging
  3. ios: uses safari remote debugging

first confirm the problem side:

use the agent to obtain the data sent by Client to Server and confirm that the data sent by the mobile phone is correct. The agent software Charles is recommended here.

then check the specific problem:

if the mobile phone sends it incorrectly, you can make sure that the character set is not set at the front end, the rich text editor is missing the setting, or the header setting is incorrect. If there is something wrong with the server itself, it is recommended to print breakpoints.

three steps of breakpoint:

  1. is the raw data BadData?
  2. is the data processed by the frame or scaffolding BadData?
  3. if neither, which step of the business logic creates the BadData?

above.

< hr >

someone praised me before I remembered the answer, adding:

Charles is not very easy to use recently. I have studied it because Android 7.0has restrictions on certificates, so it is recommended to use an emulator to complete the testing work, or if you have a test machine, which is also OK, if you are very convenient.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ed0754-490a6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ed0754-490a6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?