Unicode strings: Difference between revisions
→{{header|Ruby}}
Line 1,215:
''What encodings (e.g. UTF-8, UTF-16, etc) can be used?'' ─── There is no inbuilt support for Unicode, but all encodings can be represented through hexadecimal strings.
<br><br>
=={{header|Ring}}==
<lang ring>
see "Hello, World!"
func ringvm_see cText
ring_see("I can play with the string before displaying it" + nl)
ring_see("I can convert it :D" + nl)
ring_see("Original Text: " + cText + nl)
if cText = "Hello, World!"
# Convert it from English to Hindi
cText = "नमस्ते दुनिया!"
ok
ring_see("Converted To (Hindi): " + cText + nl)
</lang>
{{out}}
<pre>
I can play with the string before displaying it
I can convert it :D
Original Text: Hello, World!
Converted To (Hindi): नमस्ते दुनिया!
</pre>
=={{header|Ruby}}==
|