Jump to content

2-byte char(asia) with python 3.x in script filter ... help~


Recommended Posts

Hello.

I use alfred v2. (mega supporter)
 
When I make workflow, I found something .. like a bug.
 
 
I chose blank workflow and selected script filter.
 
I use python language( I install python 3.x ) So, I chose '/usr/bin/python' .
And put  codes
--------------------------------------------------------
 
print('<items>')
print('<item><title>{query}</title></item>')
print('</items>')
 
--------------------------------------------------------
 
After make that workflow, I called it by keyword. and typed any character (alphabet) .. it worked well.
Buy when I input korean, didn't show any character. 
 
 
Here is screen capture. http://youtu.be/Ovcw6abfAqk
 
Link to comment

 

Hello.

I use alfred v2. (mega supporter)
 
When I make workflow, I found something .. like a bug.
 
 
I chose blank workflow and selected script filter.
 
I use python language( I install python 3.x ) So, I chose '/usr/bin/python' .
And put  codes
--------------------------------------------------------
 
print('<items>')
print('<item><title>{query}</title></item>')
print('</items>')
 
--------------------------------------------------------
 
After make that workflow, I called it by keyword. and typed any character (alphabet) .. it worked well.
Buy when I input korean, didn't show any character. 
 
 
Here is screen capture. http://youtu.be/Ovcw6abfAqk

 

 

Those characters aren't properly normalized and therefore don't create valid XML output is more than likely the reason for this. Andrew added normalization options in some of the earlier builds of Alfred 2 but there were still issues with it so it was removed temporarily. I believe he's going to go back and take another look at it in the future.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...