UTF-8 encode and decode: Difference between revisions

Content added Content deleted
m (syntax highlighting fixup automation)
(→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)")
Line 4,203: Line 4,203:
</pre>
</pre>


=={{header|Vlang}}==
=={{header|V (Vlang)}}==
<syntaxhighlight lang="vlang">import encoding.hex
<syntaxhighlight lang="v (vlang)">import encoding.hex
fn decode(s string) ?[]u8 {
fn decode(s string) ?[]u8 {
return hex.decode(s)
return hex.decode(s)