Unicode
De Wiki Seb35
Révision de 11 septembre 2019 à 23:46 par Seb35 (discussion | contributions)
UTF-16
1 or 2 code units of 16 bits = 2 bytes
If 2 code units, first one is in 0xD800-0xDBFF, second one is in 0xDC00-0xDFFF.
- First one: 6 fixed bits (0b110110) then 4 bits encoding the Unicode plan (minus one: 1-16 become 0-15) then 6 first bits from inside the plan - note that the plan number is splitted between the two last bits of the first byte and the two first bits of the second byte
- Second one: 6 fixed bits (0b110111) then 10 last bits from inside the plan
Non-private astral planes 0x10000-0xEFFFF are encoded in UTF-16: [\uD800-\uDAFF\uDB00-\uDB7F][\uDC00-\uDFFF]
Astral planes are encoded in UTF-16: [\uD800-\uDBFF][\uDC00-\uDFFF]
Debug data:
-
Start request GET /Unicode?oldid=429875
HTTP HEADERS:
CONNECTION: Keep-Alive
HOST: wiki.seb35.fr
ACCEPT-ENCODING: br,gzip
IF-MODIFIED-SINCE: Sun, 25 Oct 2020 14:26:49 GMT
ACCEPT-LANGUAGE: en-US,en;q=0.5
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
USER-AGENT: CCBot/2.0 (https://commoncrawl.org/faq/)
CONTENT-LENGTH:
CONTENT-TYPE: -
[caches] main: EmptyBagOStuff, message: SqlBagOStuff, parser: SqlBagOStuff
-
[caches] LocalisationCache: using store LCStoreCDB
-
Fully initialised
-
Connected to database 0 at localhost:/run/mysqld/mysqld.sock
-
Title::getRestrictionTypes: applicable restrictions to [[Unicode]] are {edit,move}
-
[ContentHandler] Created handler for wikitext: WikitextContentHandler
-
Connected to database 0 at localhost:/run/mysqld/mysqld.sock
-
[DBPerformance] [GET] Expectation (masterConns <= 0) by MediaWiki::main not met:
[connect to localhost:/run/mysqld/mysqld.sock (wiki_seb35)]
TransactionProfiler.php line 271 calls wfBacktrace()
TransactionProfiler.php line 128 calls TransactionProfiler->reportExpectationViolated()
LoadBalancer.php line 517 calls TransactionProfiler->recordConnection()
SqlBagOStuff.php line 160 calls LoadBalancer->getConnection()
SqlBagOStuff.php line 245 calls SqlBagOStuff->getDB()
SqlBagOStuff.php line 219 calls SqlBagOStuff->getMulti()
MessageCache.php line 300 calls SqlBagOStuff->get()
MessageCache.php line 881 calls MessageCache->load()
MessageCache.php line 800 calls MessageCache->getMsgFromNamespace()
MessageCache.php line 737 calls MessageCache->getMessageFromFallbackChain()
Message.php line 1075 calls MessageCache->get()
Message.php line 698 calls Message->fetchMessage()
Message.php line 789 calls Message->toString()
OutputPage.php line 930 calls Message->text()
OutputPage.php line 977 calls OutputPage->setHTMLTitle()
Article.php line 512 calls OutputPage->setPageTitle()
ViewAction.php line 44 calls Article->view()
MediaWiki.php line 463 calls ViewAction->show()
MediaWiki.php line 269 calls MediaWiki->performAction()
MediaWiki.php line 634 calls MediaWiki->performRequest()
MediaWiki.php line 482 calls MediaWiki->main()
index.php line 41 calls MediaWiki->run()
index.php line 31 calls require() -
IP: 18.215.185.97
-
[MessageCache] MessageCache::load: Loading fr... got from global cache
-
Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache::transform
-
Parser: using preprocessor: Preprocessor_DOM
-
Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions::__construct
-
Article::view using parser cache: yes
-
Parser cache options found.
-
ParserOutput cache found.
-
Article::view: showing parser cache contents for current rev permalink
-
[username] User::isValidUserName: '18.215.185.97' invalid due to empty, IP, slash, length, or lowercase
-
[MessageCache] MessageCache::load: Loading en... got from global cache
-
Title::getRestrictionTypes: applicable restrictions to [[Unicode]] are {edit,move}