Template:UTF-8

00.mw-parser-output .avviso-man{margin-bottom:.5em;padding:.4em .4em;font-size:95%;border:1px solid var(--border-color-base,#a2a9b1);background-color:var(--back

Template:UTF-8

00

Info Istruzioni per l'uso
Le istruzioni che seguono sono contenute nella sottopagina Template:UTF-8/man (modifica · cronologia)
Sandbox: Template:UTF-8/Sandbox · TemplateStyles: Template:UTF-8/styles.css · Tutte le sottopagine: lista

Questo template serve a ...

Uso

{{UTF-8|code point|base=}}

Prende un singolo punto single di codice Unicode e restituisce la codifica UTF ad 8 byte.


Parametri

|code point - un valore scalare di un punto di codice Unicode, senza il prefisso "U+".

|base= - il template restituisce UTF ad 8 byte in maiuscolo esadecimale per impostazioni predefinite. base = Dec o 10 restituisce valori decimali per UTF ad 8 byte. base = LChex, LC16, Lower Case Hex o Lower Case 16 da un valore esadecimale in minuscolo.

Tutti gli input sono sensibili alla capitalizzazione.

Esempi d'uso

  • {{UTF-8|1bc15}} = F0 9B B0 95
  • {{UTF-8|bc15}} = EB B0 95
  • {{UTF-8|715}} = DC 95
  • {{UTF-8|15}} = 15
  • {{UTF-8|715|base=LChex}} = dc 95
  • {{UTF-8|715|base=dec}} = 220 149

Caratteristiche tecniche

Questo template usa i seguenti sottotemplate:

  • /principale - chiama un altro sottotemplate, basato sulle opzioni ed il formato della sequenza UTF-8
  • /1 - l'ultimo byte di una sequenza multi-byte UTF-8, e l'unico byte di una sequenza UTF-8 a singolo byte.
  • /2 - il primo byte di una sequenza di due byte, ed il penultimo di sequenza UTF-8 a 3 o 4 byte.
  • /3 - il primo byte di una sequenza di tre byte, ed il secondo byte di una sequenza UTF-8 a 4 byte.
  • /4 - il primo byte di una sequenza di quattro byte.

Questo template è dipendente dai seguenti template transclusi:

questo template, inoltre, usa il seguente modulo:

e dalle parole magiche / funzioni parser #expr:, #ifexpr:, #invoke:, #switch:, lc:, padleft: e uc:.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.