Comments (12)
°
is convert to \u00b0
of JSON.
https://3v4l.org/iA3HU
Please check character encoding. Maybe ISO-8859-1 and other character encodings.
from php-src.
Please provide exact string that is failing. Note that it needs to be valid UTF-8 so if exif data is binary, then it might be obviously failing.
from php-src.
from php-src.
So provide a string that is failing otherwise we cannot check it out. Basically we need to be able to reproduce it somehow.
from php-src.
from php-src.
The string that you provided is not failing:
var_dump(json_encode('+First Winter hike of the season. 20°F during the hike and dropping. This little bird posed nicely. There wasn\'t much wildlife because of the human traffic.'));
string(163) ""+First Winter hike of the season. 20\u00b0F during the hike and dropping. This little bird posed nicely. There wasn't much wildlife because of the human traffic.""
So please provide string that is actually failing.
from php-src.
As @youkidearitai pointed out, your encoding is most likely incorrect. I'm going to close it. If you provide example that is reliable failing, I will be happy to re-open this.
from php-src.
you can also verify it using bin2hex to compare both strings and see what the difference is. Then you should see how ° is encoded. UTF-8 should give you
echo bin2hex('°');
c2b0
from php-src.
from php-src.
If you don't mind potentially longer log entries, try to add there bin2hex($o->exifobj) - this should give info how that string is encoded
from php-src.
from php-src.
No probs. Feel free to just update this issues and if there's anything not right, I will re-open it.
from php-src.
Related Issues (20)
- Can't cross-compile with external libcrypt HOT 1
- ffi enum type (when enum has no name) make memory leak HOT 2
- Can the final PHP code be compiled into binary and run on the server, which is more secure on the server side and less likely to cause code intrusion? Currently, the traditional deployment method is through source code, which is easily exposed and tampered with. We deploy more security. Java like jar packages are not even more secure. HOT 1
- Member access within null pointer in extension spl
- PHP 8 Compile with GD Help needed HOT 1
- Indexing an array with a persistent string triggers an assertion failure during destruction HOT 4
- Seeing seg fault while using zend_disable_functions during shutdown HOT 10
- Preg unicode different results depending on if in character class or separate HOT 1
- Test curl_basic_024 fails with curl 8.8.0 HOT 3
- PHP 8.1.28 curl_exec crash with no error on first request after second request is made (fast F5) HOT 6
- Magic URL param to disable output buffering HOT 7
- Deprecation messages are often not helpful
- `number_format` no longer round properly big float HOT 9
- segmentation fault in spl_perform_autoload HOT 5
- Memory leak in xml and dom HOT 1
- Zero decimals must not affect casting to int precision HOT 1
- mb_convert_encoding UTF16 to UTF8 HOT 3
- Infinite Loop in zend_cfg.c:100:6
- Build failure (incompatible pointer types, gcc-14) with PDO/iODBC HOT 2
- Test failure in ext/session/tests/gh13856.phpt HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-src.