Difference between revisions of "TextToUnicode Command"

From GeoGebra Manual
Jump to: navigation, search
m (1 revision)
(command syntax: changed [ ] into ( ))
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|text}}
{{command|text}}
+
; TextToUnicode( "<Text>" )
; TextToUnicode["Text"]: Turns the text into a list of Unicode numbers, one for each character.
+
: Turns the text into a list of Unicode numbers, one for each character.
: Examples:
+
: {{Examples|1=<br>
:* <tt>TextToUnicode["Some text"]</tt> gives you the list of Unicode numbers ''{83, 111, 109, 101, 32, 116, 101, 120, 116}''.
+
:* <code>TextToUnicode("Some text")</code> gives you the list of Unicode numbers ''{83, 111, 109, 101, 32, 116, 101, 120, 116}''.
:* If ''text1'' is ''"hello"'', then <tt>TextToUnicode[text1]</tt> gives you the list of Unicode numbers ''{104, 101, 108, 108, 111}''.
+
:* If ''text1'' is ''"hello"'', then <code>TextToUnicode(text1)</code> gives you the list of Unicode numbers ''{104, 101, 108, 108, 111}''.}}
 +
{{Note| See also [[UnicodeToText Command]] and [[LetterToUnicode Command]].}}

Latest revision as of 12:14, 3 October 2017


TextToUnicode( "<Text>" )
Turns the text into a list of Unicode numbers, one for each character.
Examples:
  • TextToUnicode("Some text") gives you the list of Unicode numbers {83, 111, 109, 101, 32, 116, 101, 120, 116}.
  • If text1 is "hello", then TextToUnicode(text1) gives you the list of Unicode numbers {104, 101, 108, 108, 111}.
© 2024 International GeoGebra Institute