B4J Question textreader.initialize2

moore_it

Well-Known Member
Licensed User
Longtime User
Hello all,

i need to found the supported iso codes for textreader.initialize2.
Can anyone help me?

Thanks
 
Solution

And to get it programmatically:
B4X:
Private Sub GetSupportedCharsets As List
    Dim Charset As JavaObject
    Charset.InitializeStatic("java.nio.charset.Charset")
    Dim m As Map = Charset.RunMethod("availableCharsets", Null)
    Dim res As List
    res.Initialize
    For Each c As String In m.Keys
        res.Add(c)
    Next
    Return res
End Sub

Erel

B4X founder
Staff member
Licensed User
Longtime User

And to get it programmatically:
B4X:
Private Sub GetSupportedCharsets As List
    Dim Charset As JavaObject
    Charset.InitializeStatic("java.nio.charset.Charset")
    Dim m As Map = Charset.RunMethod("availableCharsets", Null)
    Dim res As List
    res.Initialize
    For Each c As String In m.Keys
        res.Add(c)
    Next
    Return res
End Sub
 
Upvote 1
Solution
Top