Problem with reading ping txt

Hi scilab team, i faced a strange problem with this txt
Multiple_Ping.txt (3.5 KB)

first i tried mgetl but i think it does not appreciate utf-8 or utf-16, secon i tried uiimport and it hangs and i dont think that csvRead is a good option.

when you have time it is not important to me, can you look closer?

M.f.G. Pascal

csvTextscan gives Nan?

There is likely a problem in the encoding of your file. It is neither UTF-8 nor UTF-16 as the spurious character in

Screenshot 2025-06-27 at 13.28.12

is U+0081 whereas is should be “ü”.

Please run the ping command in Powershell instead of DOS cmd to see if the encoding problem remains.

S.

i did what you asked fore and did not touched the file, but still with mgetl not good


Multiple_Ping.txt (5.9 KB)

[quote=“mottelet, post:3, topic:988”]
U+0081 is Latin-1, its on windows 11, i tried to add -Encoding UTF8 but it gives me an error

My advice is to use Scilab’s internal output redirection of commands:

-> unix_g("ping www.google.com")

 ans = [12x1 string]

  ""                                                                             
  "Ping wird ausgeführt für www.google.com [142.250.179.100] mit 32 Bytes Daten:"
  "Antwort von 142.250.179.100: Bytes=32 Zeit=2ms TTL=117"                       
  "Antwort von 142.250.179.100: Bytes=32 Zeit=2ms TTL=117"                       
  "Antwort von 142.250.179.100: Bytes=32 Zeit=2ms TTL=117"                       
  "Antwort von 142.250.179.100: Bytes=32 Zeit=2ms TTL=117"                       
  ""                                                                             
  "Ping-Statistik für 142.250.179.100:"                                          
  "    Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0"                        
  "    (0% Verlust),"                                                            
  "Ca. Zeitangaben in Millisek.:"                                                
  "    Minimum = 2ms, Maximum = 2ms, Mittelwert = 2ms"                 

yes, this works, i have tested it, but what is wrong with the txt and mgetl?

That’s just windows output redirection which does not correctly handle special characters. mgetl is supposed to be fed by authentical text and may be not robust when the string contains unassigned characters.

S.

ok, thanks, good to know.
so i will use Scilab internal output.

m.f.g. Pascal