iOS Question FTP.List and umlauts

Timm Sodtalbers

Member
Licensed User
Longtime User
Hi!

Under B4i Ftp.List seems to have problems with files that contain german umlauts. With B4A it works.
B4X:
FTP.List( "/" & cUserFolder )

Wait For ftp_ListCompleted( ServerPath As String, Success As Boolean, Folders() As FTPEntry, Files() As FTPEntry )

If Success Then
    For i = 0 To Files.Length - 1
        Log(Files(i).Name & ", " & Files(i).Size & ", " & DateTime.Date(Files(i).Timestamp))
    Next
End If
B4A log return:
B4X:
1439 - Entwurf West.pdf, 151033, 27.10.2022
21088 - Entwässerungsplan gesamt.pdf, 2705745, 27.10.2022
2475 - Baucamp Tränkeweg.pdf, 1222117, 27.10.2022
B4i log return:
B4X:
1439 - Entwurf West.pdf, 151033, 27.10.2022
<null>, 2705745, 27.10.2022
<null>, 1222117, 27.10.2022

What can I do?

Regards, Timm
 

Swissmade

Well-Known Member
Licensed User
Longtime User
Hi!

Under B4i Ftp.List seems to have problems with files that contain german umlauts. With B4A it works.
B4X:
FTP.List( "/" & cUserFolder )

Wait For ftp_ListCompleted( ServerPath As String, Success As Boolean, Folders() As FTPEntry, Files() As FTPEntry )

If Success Then
    For i = 0 To Files.Length - 1
        Log(Files(i).Name & ", " & Files(i).Size & ", " & DateTime.Date(Files(i).Timestamp))
    Next
End If
B4A log return:
B4X:
1439 - Entwurf West.pdf, 151033, 27.10.2022
21088 - Entwässerungsplan gesamt.pdf, 2705745, 27.10.2022
2475 - Baucamp Tränkeweg.pdf, 1222117, 27.10.2022
B4i log return:
B4X:
1439 - Entwurf West.pdf, 151033, 27.10.2022
<null>, 2705745, 27.10.2022
<null>, 1222117, 27.10.2022

What can I do?

Regards, Timm
You only list the files so maybe rename the ä to ae what means the same in german.
 
Upvote 0
Top