added utf-8 string support

This commit is contained in:
cozis
2022-03-13 00:40:10 +01:00
parent 6017f99b07
commit ee68905f92
9 changed files with 476 additions and 16 deletions
+1 -1
View File
@@ -2,6 +2,6 @@ buff = newBuffer(1024);
name = 'samples/bubble_sort.noja';
hdle = files.openFile(name, files.READ);
n = files.read(hdle, buff);
resl = sliceBuffer(buff, 0, n);
resl = bufferToString(sliceBuffer(buff, 0, n));
print('Read ', n, ' bytes.\n');
print(resl);