UTF-8 source files are not supported

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
Andyme
Joined: Mon Dec 17, 2007 5:33 am
Contact:
Org Profile

UTF-8 source files are not supported

Post by Andyme » Thu Mar 17, 2011 7:26 pm

Hi, everyone! As you can guess, I'm having problems opening my avs files in virtualdub. When I wanna import them, Virtualdub sends me this message: Avisynth open failure: Import: UTF-8 source files are not supported, re-save script ANSI encoding!: "C:\Users\User\Other stuff\AVS\filename.avs")


I used this code: FFVideoSource("C:\Users\User\Other stuff\AVS\filename.mkv")


What should I do? I would really appreciate any help it! Thank you in advance!

[MOD258: Removed the filename. Please read the rules.]

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Re: UTF-8 source files are not supported

Post by Scintilla » Thu Mar 17, 2011 8:15 pm

Use Notepad to open the file, and when you re-save it, make sure the "Encoding" option in the save dialog is set to "ANSI".
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: UTF-8 source files are not supported

Post by mirkosp » Fri Mar 18, 2011 3:06 am

Yes, AVS scripts need to be saved as ANSI. However, if you were to need to open a file that has UTF-8 characters in the path or filename, you can actually specify the parameter utf8=true when calling ffvideosource, save the script as UTF-8 without BOM, and then see if that works.
Image

User avatar
Andyme
Joined: Mon Dec 17, 2007 5:33 am
Contact:
Org Profile

Re: UTF-8 source files are not supported

Post by Andyme » Fri Mar 18, 2011 1:38 pm

It worked! Thank you so-so much for the reply! You saved my next amv! :D When It's done, you have to decide wether or not It was worth it. :)

Locked

Return to “AviSynth Help”