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:
Code:
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

And to get it programmatically:
Code:
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
Back
Top