Created
February 8, 2014 03:40
-
-
Save vdcrim/8876379 to your computer and use it in GitHub Desktop.
For AvsPmod posterior to v2.5.1 + ffms2 + utf8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
sys_encoding = sys.getfilesystemencoding() | |
if sys_encoding != 'utf8': | |
text = avsp.GetSelectedText() | |
if text: | |
text = text.encode('utf8').decode(sys_encoding) | |
avsp.InsertText(text, pos=None) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment