Log in

View Full Version : Avisynth and japanese characters


gcornellier
2nd November 2007, 21:46
I am having a problem that I can not seem to resolve. I am trying to load a script that has a path name with a mix of japanese characters (someone's name) and Ascii test ... application.startup path. I get an import error and the path that is displayed has some strange characters (not the japanese characters). Below is the script. if the script is even the directory it will not load?

Help Please.

Thanks

LoadPlugin("C:\Documents and Settings\GCornellier\Desktop\CoachesEdition07\BKIKvest\bin\dgbob.dll")
DirectShowSource("C:\Documents and Settings\GCornellier\Desktop\CoachesEdition07\BKIKvest\bin\Lockers\凢乇及久_丂七\V200711213833.avi",29.97)
parity = GetParity() ? 1 : 0
DgBob(Order = parity, mode = 2)

Akatsuker
3rd November 2007, 00:08
I'm a n00b, but heard AVISynth has problems with non-ANSI chars on filenames.

Please, all you guys feel free to correct me (never tried). ^^

IanB
3rd November 2007, 00:58
This is a long standing problem. See this thread "Foreign Language characters in filenames"

However your problem seems to be the opposite in that DSS is failing, where it is the only thing that works for the other.

qyot27
3rd November 2007, 05:06
The only thing that I can suggest is to run the target program (i.e. VirtualDub, Windows Media Player, etc.) in Japanese code page through the use of AppLocale (http://www.microsoft.com/globaldev/tools/apploc.mspx) if you don't want to reboot into full Japanese code page or change the script name (rebooting into Japanese code page should make everything work seamlessly, but it's been a long time since I did that and my memory is fuzzy). The script itself needs to also be in that code page as well, if I recall right. That can easily be done by composing the script while running Notepad through AppLocale.

The simplest solution, of course, would be to simply romanize the Japanese characters. If the file needs to have the foreign characters preserved, then store the original filename in a separate file and recopy the name after the conversion with the script is finished.