简体   繁体   中英

Converting MYSQL UUID unicode characters from json response to hex in php

["

I get an API response with a mysql error in the browser.<\/i>

As @Michas already mentioned in a comment it is not possible to regain the original binary data from that string. If you're in a dev environment, then you should be able to look at the response to your API request and find a URL to the Symfony Profiler page for that request under the header X-Debug-Token-Link . On the Profiler page you might be able to find the Query under the Doctrine tab with readable parameters if you look at the runnable version. However they might not be readable there, as the UUIDs will probably have been converted to binary data already at that point. Then your best bet would be the Exception tab where you might be able to find a call in the stack that exposes the original payload, eg a call to ApiController::executeWriteOperation .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM