Tag Info

New answers tagged

0

So far here are some ways decimal Unicode can be specified enough to convey the meaning to anyone who searches: XML Entity Notation: &#nnn; C / C++ Wide Character: wchar_t(nnn) SQL National Character: NCHAR(nnn) (Available in MSSQL, MySQL, Oracle) Windows ALT Notation: ALT+nnn (although it can be easily confused with the hex version with the plus key, ...


3

There is no commonly accepted decimal notation for Unicode codepoints. Unicode codepoints are almost universally represented in hexadecimal. The sole exception I'm aware of is the use of Numeric Character References (NCRs) in languages derived from SGML (e.g., HTML and XML), which can take one of two forms: &#nnn; in decimal or &#xnnn; in ...


3

What Python does is writing the encoding out in the source code, specifically a specially-formatted comment. See PEP 263. It doesn't need to be a comment, but spelling out the encoding is pretty much the only sensible approach. "Guessing" encoding from raw bytes does not work very well, and is far too magical for the tastes of most programmers. It would be ...



Top 50 recent answers are included