Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The switch parameter has no effect
#1
Hi,
I use Macro4 to get the code inside file u8-bom.txt on the desktop and then write it to the Autotext file Autotext8

The switch parameter(/b/i/c/m) has no effect, 

I need to read from a utf8 txt file with bom, This could be the cause of the error,
How to solve it?
Thanks in advance for any advice and help
david



[Image: abcd.gif]

Macro Macro4
Code:
Copy      Help
_s.getfile("$desktop$\u8-bom.txt")
_s.setmacro("Autotext8")


Attached Files
.txt   u8-bom.txt (Size: 99 bytes / Downloads: 86)
#2
If you know what is BOM, it's easy to remove it from the string.

Or
 
Code:
Copy      Help
_s.LoadUnicodeFile("$desktop$\u8-bom.txt")
#3
@Gintaras

thank you so much

How to solve it with the method of replacing characters?  None of the characters were seen  Smile

How to remove characters U+FEFF


Forum Jump:


Users browsing this thread: 1 Guest(s)