Hi there,
is it possible to convert cp737 -got it from StdOut (when returned from jshell)- to utf8 on the fly... without putting into file and reading with textreader...?
I thought that was possible to do with:
but getting ????? ???? questionmarks...
...Thanks
is it possible to convert cp737 -got it from StdOut (when returned from jshell)- to utf8 on the fly... without putting into file and reading with textreader...?
I thought that was possible to do with:
B4X:
Sub s2utf(a As String) As String
Dim c() As Byte = a.getbytes("cp737")
Dim utf As String =""
Dim m As Int = c.Length-1
For i=0 To m
utf = utf & Chr(c(i))
Next
Return utf
End Sub
but getting ????? ???? questionmarks...
...Thanks