lisamelton / other_video_transcoding

Other tools to transcode videos.
MIT License
543 stars 24 forks source link

invalid byte sequence in UTF-8 (ArgumentError) #145

Closed joeblack2k closed 2 years ago

joeblack2k commented 2 years ago

Running the batch file spits out this error:

batch.rb:10:in `match': invalid byte sequence in UTF-8 (ArgumentError)

i'm running Windows 11 and using the powershell (but cmd also gives the error)

any idea whats going on?

joeblack2k commented 2 years ago

this line generated a ANSI file:

Get-ChildItem -Recurse -Include *.mkv | Select-Object -ExpandProperty FullName | Set-Content queue.txt

open queue.txt and save it as a utf-8 file fixes it

samhutchins commented 2 years ago

Urgh, encoding always gets me. Sorry about that, glad you figured it out

lisamelton commented 2 years ago

@joeblack2k Using -encoding oem with something like out-file in PowerShell will select UTF-8 encoding.