UTF-8 source files are not supported

This forum is for questions and discussion of all the aspects of handling your footage. If you have questions about capturing/ripping footage, AviSynth, or compression/encoding/converting, look here.

UTF-8 source files are not supported

Postby 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
Andyme
 
Joined: 17 Dec 2007

Re: UTF-8 source files are not supported

Postby 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
Scintilla
(for EXTREME)
 
Joined: 31 Mar 2003
Location: New Jersey
Status: Quo

Re: UTF-8 source files are not supported

Postby 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
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: UTF-8 source files are not supported

Postby 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. :)
User avatar
Andyme
 
Joined: 17 Dec 2007


Return to Footage Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron