Jump to content

UTF-8 encode and decode: Difference between revisions

m
m (Update to supported Julia 1.x (tested in 1.8.5), also works in 0.6)
imported>Arakov
Line 2,519:
 
=={{header|Elena}}==
ELENA 46.x :
<syntaxhighlight lang="elena">import system'routines;
import extensions;
Line 2,532:
string printAsUTF8Array()
{
self.toByteArray().forEach::(b){ console.print(b.toString(16)," ") }
}
string printAsUTF32()
{
self.toArray().forEach::(c){ console.print("U+",c.toInt().toString(16)," ") }
}
}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.