Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_s.beg("_")
#5
I still don’t quite understand —
where does the BOM character come from? Isn't the BOM character at the beginning of a binary file?

Below is the complete code. My original a.txt file was indeed encoded in UTF-8 with BOM, but after I changed the file to UTF-8 encoding, the code still does not work.

Macro Macro53
Code:
Copy      Help
out

str ss.getfile("$desktop$\a.txt")
foreach _s ss
,;_s.trim("_")
,if(_s.beg("_"))
,,_s.trim("_")
,,out _s
,,;some code
,,continue
,out _s


Messages In This Thread
_s.beg("_") - by Davider - 03-01-2026, 01:32 PM
RE: _s.beg("_") - by Gintaras - 03-01-2026, 02:24 PM
RE: _s.beg("_") - by Davider - 03-01-2026, 03:01 PM
RE: _s.beg("_") - by Gintaras - 03-01-2026, 03:10 PM
RE: _s.beg("_") - by Davider - 03-01-2026, 04:15 PM
RE: _s.beg("_") - by Gintaras - 03-01-2026, 04:38 PM
RE: _s.beg("_") - by Davider - 03-01-2026, 10:34 PM
RE: _s.beg("_") - by Davider - 03-02-2026, 03:28 AM
RE: _s.beg("_") - by Davider - 03-02-2026, 06:15 AM
RE: _s.beg("_") - by Gintaras - 03-02-2026, 06:45 AM
RE: _s.beg("_") - by Davider - 03-02-2026, 07:05 AM
RE: _s.beg("_") - by Gintaras - 03-02-2026, 07:19 AM
RE: _s.beg("_") - by Davider - 03-02-2026, 07:39 AM
RE: _s.beg("_") - by Gintaras - 03-02-2026, 07:43 AM
RE: _s.beg("_") - by Davider - 03-02-2026, 10:32 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)