You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This decoding error popped up while iterating through the channels of a project file for all instrument plugin names
Exception has occurred: UnicodeDecodeError
'ascii' codec can't decode byte 0xc2 in position 12: ordinal not in range(128)
File "D:\Users\Beyonca\CodingProjects\Python\FLP-Analyzer\test_file.py", line 15, in <module>
plg = channel.plugin.name #Error occurs here
^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 12: ordinal not in range(128)
The VST name that appears to be causing the error has a squared 2 in its name (don't ask me why)
I recreated a new project file isolating it to only this plugin to confirm.
What version of PyFLP are you using?
2.1.0
What code caused this issue?
importpyflpimportos#Getting relative file pathabs_path=os.path.dirname(__file__)
rel_path="proj_files/nonASCIIcharacters_in_VST.flp"proj_file_path=os.path.join(abs_path, rel_path)
#Load the flp project fileproj=pyflp.parse(proj_file_path)
#Get the name of each plugin in proj fileforchanneliniter(proj.channels.instruments):
plg=channel.plugin.name#Error occurs hereprint(plg)
This is a discovery. Till now, I believed FL didn't allow non-ASCII characters as part of the plugin's factory name as the VST2 (and till some time VST3) didn't allow them (technically). The encoded string (in CP-1252) is
shortcircuit脗虏
which in UTF8 becomes
shortcircuit虏
A fix will be out soon.
demberto
changed the title
馃悶 Can't read non-ASCII characters in VSTPlugin name
馃悶 VSTPlugin.name encoded in UTF8
May 24, 2023
Describe the issue
This decoding error popped up while iterating through the channels of a project file for all instrument plugin names
The VST name that appears to be causing the error has a squared 2 in its name (don't ask me why)
I recreated a new project file isolating it to only this plugin to confirm.
What version of PyFLP are you using?
2.1.0
What code caused this issue?
Screenshots, Additional info
The error screenshot
The flp project
nonASCIIcharacters_in_VST.zip
Code of Conduct
The text was updated successfully, but these errors were encountered: