UTF-8 encode and decode: Difference between revisions

(Added FreeBASIC)
 
(2 intermediate revisions by the same user not shown)
Line 3,323:
val .utf8 = s2b cp2s .cp
val .cpstr = b2s .utf8
val .utf8rep = join " ", map ffn .b: $"\{{.b:X02;}}", .utf8
writeln $"\{{.cpstr:-11;}} U+\{{.cp:X04:-8;}} \{{.utf8rep;}}"
}
}</syntaxhighlight>
 
{{out}}
885

edits