Code: Select all
param=-i %UL playlist "%T"
The second line will increase a invisible space that let filesize incrase 3bytes.(compare with file manually edit with same content)
It might be the BOM maker because %UL has BOM

Moderators: Hacker, petermad, Stefan2, white
Code: Select all
param=-i %UL playlist "%T"
TCBL do not support Unicode.. Only ansi list have to be passed as parameter. By default codepage is the same as installed windows but you can change it if it does not match the list encoding.
@Usher,Usher wrote: 2020-05-20, 18:38 UTC 65001 stands for Unicode UTF-8, but INI files should be only in ANSI codepages (125x etc.) or Unicode UTF-16LE (1200).
TC supports UTF-8 in some other text files, but that support is inconsistent. For example LNG files may be in UTF-8 with BOM, but MNU files in UTF-8 must be without BOM.
@kesdoputr,kesdoputr wrote: 2020-05-20, 23:43 UTC It must not the best solution, but temporary solve my problem now.
Maybe in the future TC will has it's own UTF-8 list file variable without the BOM, then everything will be simple:)
Code: Select all
@REM UFT8Appender.bat
@echo off
chcp 65001
REM %~dp0\gecho -ne \xEF\xBB\xBF> "%3"
for /F "usebackq tokens=*" %%A in ("%2") do echo %1 '%%A'>>"%3"
Code: Select all
[em_UTF8Playlist]
command=<pathTo>\UFT8Appender.bat
params=file %UL %T\playlist.txt
It's strange but in my case tcbl seems can read the multi-byte correctly?nsp wrote: 2020-05-21, 06:24 UTC@kesdoputr,kesdoputr wrote: 2020-05-20, 23:43 UTC It must not the best solution, but temporary solve my problem now.
Maybe in the future TC will has it's own UTF-8 list file variable without the BOM, then everything will be simple:)
This cannot be the solution as if multi-byte char are part of the list, you will break character buffers ($n, $p $f... )--> The resulting list will be truncated !
Standard way in windows for UTF8 is to have BOM so i'm pretty sure TC will not generate filelist without BOM even if it is easier.. !
For your simple case, you can use a fairly simple vb-script to read all lines and add the word "file " in front of each line.
Code: Select all
[test]
ini=o $1\test.txt
ini=x
ini=q
ini=k
cmd=$n
cmd=$p
cmd=$f
Code: Select all
[em_test]
cmd=%ComSpec% /c ""%COMMANDER_PATH%\PLUGINS\ETC\tcbl.exe" -i""
param=%%temp%%\utf8nb.txt test "%T"
Thanks for your reply, i will try this method later.nsp wrote: 2020-05-21, 07:56 UTC @kesdoputr
Addition to previous post..
You can use a bat like the following:call from TCCode: Select all
@REM UFT8Appender.bat @echo off chcp 65001 REM %~dp0\gecho -ne \xEF\xBB\xBF> "%3" for /F "usebackq tokens=*" %%A in ("%2") do echo %1 '%%A'>>"%3"
The generated file will not have BOM, if you want one you should use gecho from gnuwin32 coreutils + liiconv2.dd +libintl3.dllCode: Select all
[em_UTF8Playlist] command=<pathTo>\UFT8Appender.bat params=file %UL %T\playlist.txt
Code: Select all
magick c:\tse\in.jpg -gravity center -background white -extent "%[fx:w*1.1]x%[fx:h*1.1]" c:\TSE\out.jpg
Code: Select all
%L c:\TC\tools\imagemagick\magick $f -gravity center -background white -extent \"[fx:w*1.1]x[fx:h*1.1]\" $x.png
Code: Select all
%L c:\TC\tools\imagemagick\magick $f -gravity center -background white -extent \"%%%%[fx:w*1.1]x%%%%[fx:h*1.1]\" $x.png